diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-06-11 08:35:14 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-06-11 08:35:14 (GMT) |
commit | 6aaccc6b55a684771abfdad74bea742c25ded506 (patch) | |
tree | cbc2c891e55d4efdeefc356d937c2aa5471f341e /Lib/compiler | |
parent | e588c2ba9716a81358438b4e7cd23724dcef2ba9 (diff) | |
download | cpython-6aaccc6b55a684771abfdad74bea742c25ded506.zip cpython-6aaccc6b55a684771abfdad74bea742c25ded506.tar.gz cpython-6aaccc6b55a684771abfdad74bea742c25ded506.tar.bz2 |
Fix errors found by pychecker
Diffstat (limited to 'Lib/compiler')
-rw-r--r-- | Lib/compiler/symbols.py | 2 | ||||
-rw-r--r-- | Lib/compiler/transformer.py | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/Lib/compiler/symbols.py b/Lib/compiler/symbols.py index c608f64..8eb5fce 100644 --- a/Lib/compiler/symbols.py +++ b/Lib/compiler/symbols.py @@ -191,7 +191,7 @@ class GenExprScope(Scope): self.add_param('[outmost-iterable]') def get_names(self): - keys = Scope.get_names() + keys = Scope.get_names(self) return keys class LambdaScope(FunctionScope): diff --git a/Lib/compiler/transformer.py b/Lib/compiler/transformer.py index e1a9775..d30cc1a 100644 --- a/Lib/compiler/transformer.py +++ b/Lib/compiler/transformer.py @@ -729,8 +729,6 @@ class Transformer: def atom(self, nodelist): return self._atom_dispatch[nodelist[0][0]](nodelist) - n.lineno = nodelist[0][2] - return n def atom_lpar(self, nodelist): if nodelist[1][0] == token.RPAR: |