[Python-checkins] r66886 - sandbox/trunk/2to3/lib2to3/refactor.py
benjamin.peterson
python-checkins at python.org
Mon Oct 13 23:33:53 CEST 2008
Author: benjamin.peterson
Date: Mon Oct 13 23:33:53 2008
New Revision: 66886
Log:
cut down on some crud
Modified:
sandbox/trunk/2to3/lib2to3/refactor.py
Modified: sandbox/trunk/2to3/lib2to3/refactor.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/refactor.py (original)
+++ sandbox/trunk/2to3/lib2to3/refactor.py Mon Oct 13 23:33:53 2008
@@ -36,9 +36,7 @@
pkg = __import__(fixer_pkg, [], [], ["*"])
fixer_dir = os.path.dirname(pkg.__file__)
fix_names = []
- names = os.listdir(fixer_dir)
- names.sort()
- for name in names:
+ for name in sorted(os.listdir(fixer_dir)):
if name.startswith("fix_") and name.endswith(".py"):
if remove_prefix:
name = name[4:]
More information about the Python-checkins
mailing list