summaryrefslogtreecommitdiff
path: root/Lib/symtable.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-06-02 18:55:56 +0000
committerRaymond Hettinger <python@rcn.com>2002-06-02 18:55:56 +0000
commit8a403845e8d0d77926d795926d74f02c5453a856 (patch)
tree84bf03d633212daaf7d8cddae6887ad8ede50191 /Lib/symtable.py
parent48221dcb806c98622f5c78c8121af360a53b2c44 (diff)
downloadcpython-8a403845e8d0d77926d795926d74f02c5453a856.tar.gz
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 44983358ca..38042ae960 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: