diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-08-20 12:55:31 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-08-20 12:55:31 +0000 |
commit | b71caf186a7a3ccc5e3c6d5e23779ef6246ca1d2 (patch) | |
tree | b5716606dfb232891cc6892458f911af96250baf /Lib/symtable.py | |
parent | 768008c6e2939d6bb6d275ba4f146e67bf7a6ab7 (diff) | |
download | cpython-git-b71caf186a7a3ccc5e3c6d5e23779ef6246ca1d2.tar.gz |
revert 65897
Diffstat (limited to 'Lib/symtable.py')
-rw-r--r-- | Lib/symtable.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/symtable.py b/Lib/symtable.py index 9387a67e24..0d73870709 100644 --- a/Lib/symtable.py +++ b/Lib/symtable.py @@ -128,8 +128,8 @@ class Function(SymbolTable): __globals = None def __idents_matching(self, test_func): - return frozenset(ident for ident in self.get_identifiers() - if test_func(self._table.symbols[ident])) + return tuple([ident for ident in self.get_identifiers() + if test_func(self._table.symbols[ident])]) def get_parameters(self): if self.__params is None: @@ -164,7 +164,7 @@ class Class(SymbolTable): d = {} for st in self._table.children: d[st.name] = 1 - self.__methods = frozenset(d) + self.__methods = tuple(d) return self.__methods |