Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
0a24415b
Commit
0a24415b
authored
Dec 28, 2016
by
Steve Dower
Browse files
Options
Browse Files
Download
Plain Diff
Issue #29079: Prevent infinite loop in pathlib.resolve() on Windows
parents
13b0de95
4b1e98b0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
Lib/pathlib.py
Lib/pathlib.py
+3
-1
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/pathlib.py
View file @
0a24415b
...
@@ -192,7 +192,9 @@ class _WindowsFlavour(_Flavour):
...
@@ -192,7 +192,9 @@ class _WindowsFlavour(_Flavour):
s
=
self
.
_ext_to_normal
(
_getfinalpathname
(
s
))
s
=
self
.
_ext_to_normal
(
_getfinalpathname
(
s
))
except
FileNotFoundError
:
except
FileNotFoundError
:
previous_s
=
s
previous_s
=
s
s
=
os
.
path
.
abspath
(
os
.
path
.
join
(
s
,
os
.
pardir
))
s
=
os
.
path
.
dirname
(
s
)
if
previous_s
==
s
:
return
path
else
:
else
:
if
previous_s
is
None
:
if
previous_s
is
None
:
return
s
return
s
...
...
Misc/NEWS
View file @
0a24415b
...
@@ -208,6 +208,8 @@ Core and Builtins
...
@@ -208,6 +208,8 @@ Core and Builtins
Library
Library
-------
-------
-
Issue
#
29079
:
Prevent
infinite
loop
in
pathlib
.
resolve
()
on
Windows
-
Issue
#
13051
:
Fixed
recursion
errors
in
large
or
resized
-
Issue
#
13051
:
Fixed
recursion
errors
in
large
or
resized
curses
.
textpad
.
Textbox
.
Based
on
patch
by
Tycho
Andersen
.
curses
.
textpad
.
Textbox
.
Based
on
patch
by
Tycho
Andersen
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment