Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
555f239e
Commit
555f239e
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
804a12d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
filelist.py
filelist.py
+1
-2
version.py
version.py
+4
-4
No files found.
filelist.py
View file @
555f239e
...
...
@@ -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
))
...
...
version.py
View file @
555f239e
...
...
@@ -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