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
dc40ae6b
Commit
dc40ae6b
authored
Jul 17, 2007
by
Collin Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix two bugs from the map->itertools.imap switch.
parent
2c8fef07
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
Lib/distutils/filelist.py
Lib/distutils/filelist.py
+1
-2
Lib/distutils/version.py
Lib/distutils/version.py
+4
-4
No files found.
Lib/distutils/filelist.py
View file @
dc40ae6b
...
...
@@ -65,8 +65,7 @@ class FileList:
def
sort
(
self
):
# Not a strict lexical sort!
sortable_files
=
map
(
os
.
path
.
split
,
self
.
files
)
sortable_files
.
sort
()
sortable_files
=
sorted
(
map
(
os
.
path
.
split
,
self
.
files
))
self
.
files
=
[]
for
sort_tuple
in
sortable_files
:
self
.
files
.
append
(
os
.
path
.
join
(
*
sort_tuple
))
...
...
Lib/distutils/version.py
View file @
dc40ae6b
...
...
@@ -306,11 +306,11 @@ class LooseVersion (Version):
# from the parsed tuple -- so I just store the string here for
# use by __str__
self
.
vstring
=
vstring
components
=
filter
(
lambda
x
:
x
and
x
!=
'.'
,
self
.
component_re
.
split
(
vstring
))
for
i
in
range
(
len
(
components
)
):
components
=
[
x
for
x
in
self
.
component_re
.
split
(
vstring
)
if
x
and
x
!=
'.'
]
for
i
,
obj
in
enumerate
(
components
):
try
:
components
[
i
]
=
int
(
components
[
i
]
)
components
[
i
]
=
int
(
obj
)
except
ValueError
:
pass
...
...
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