summaryrefslogtreecommitdiffstats
path: root/Lib/symtable.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-06-02 18:55:56 (GMT)
committerRaymond Hettinger <python@rcn.com>2002-06-02 18:55:56 (GMT)
commite0d4972acc8cfd4b8fb16c074a8031e50fab0f29 (patch)
treeb9a9286453c2ee4397618d4483679c3bc531f4b0 /Lib/symtable.py
parent1fab9ee085755ed2f7abcf28794d7c20bd51a97a (diff)
downloadcpython-e0d4972acc8cfd4b8fb16c074a8031e50fab0f29.zip
cpython-e0d4972acc8cfd4b8fb16c074a8031e50fab0f29.tar.gz
cpython-e0d4972acc8cfd4b8fb16c074a8031e50fab0f29.tar.bz2
Replaced .keys() with dictionary iterators
Diffstat (limited to 'Lib/symtable.py')
-rw-r--r--Lib/symtable.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/symtable.py b/Lib/symtable.py
index 4498335..38042ae 100644
--- a/Lib/symtable.py
+++ b/Lib/symtable.py
@@ -163,7 +163,7 @@ class Class(SymbolTable):
d = {}
for st in self._table.children:
d[st.name] = 1
- self.__methods = tuple(d.keys())
+ self.__methods = tuple(d)
return self.__methods
class Symbol: