summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2011-01-27 00:06:54 (GMT)
committerRaymond Hettinger <python@rcn.com>2011-01-27 00:06:54 (GMT)
commit8b5eb2f813b8e22e97308c18a61f1824f962604c (patch)
tree109ec6b39ded605baffc1a676ceaa20a5ef2e415 /Lib
parent528d9f6ead819aff0862f5a7ce1574da13689c75 (diff)
downloadcpython-8b5eb2f813b8e22e97308c18a61f1824f962604c.zip
cpython-8b5eb2f813b8e22e97308c18a61f1824f962604c.tar.gz
cpython-8b5eb2f813b8e22e97308c18a61f1824f962604c.tar.bz2
Issue #11020: Command-line pyclbr was broken because of missing 2-to-3
conversion. (Patch reviewed by David Murray.)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/pyclbr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pyclbr.py b/Lib/pyclbr.py
index c87ec66..52cbdd5 100644
--- a/Lib/pyclbr.py
+++ b/Lib/pyclbr.py
@@ -325,7 +325,7 @@ def _main():
else:
path = []
dict = readmodule_ex(mod, path)
- objs = dict.values()
+ objs = list(dict.values())
objs.sort(key=lambda a: getattr(a, 'lineno', 0))
for obj in objs:
if isinstance(obj, Class):