mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Fix two bugs from the map->itertools.imap switch.
This commit is contained in:
parent
2c8fef07f6
commit
dc40ae6b24
2 changed files with 5 additions and 6 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue