diff options
| author | ?ric Araujo <merwok@netwok.org> | 2010-12-17 18:18:59 +0100 |
|---|---|---|
| committer | ?ric Araujo <merwok@netwok.org> | 2010-12-17 18:18:59 +0100 |
| commit | 5583d131048a1399258be199c4259f917ef48b7e (patch) | |
| tree | 9dcf4b3ac347dfcddb31c0cda3137f65a171e644 /distutils2/command/sdist.py | |
| parent | 7e340ecbcd45c5ab6db8161844e861c3d4c49e5f (diff) | |
| download | disutils2-5583d131048a1399258be199c4259f917ef48b7e.tar.gz | |
Save up a bit of memory thanks to dict.iter* and __iter__
Diffstat (limited to 'distutils2/command/sdist.py')
| -rw-r--r-- | distutils2/command/sdist.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/distutils2/command/sdist.py b/distutils2/command/sdist.py index 0a83030..df8e07a 100644 --- a/distutils2/command/sdist.py +++ b/distutils2/command/sdist.py @@ -371,8 +371,7 @@ class sdist(Command): need_dir = {} for file in files: need_dir[os.path.join(base_dir, os.path.dirname(file))] = 1 - need_dirs = need_dir.keys() - need_dirs.sort() + need_dirs = sorted(need_dir) # Now create them for dir in need_dirs: |
