summaryrefslogtreecommitdiffstats
path: root/Lib/compiler
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-06-11 08:35:14 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-06-11 08:35:14 (GMT)
commit6aaccc6b55a684771abfdad74bea742c25ded506 (patch)
treecbc2c891e55d4efdeefc356d937c2aa5471f341e /Lib/compiler
parente588c2ba9716a81358438b4e7cd23724dcef2ba9 (diff)
downloadcpython-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.py2
-rw-r--r--Lib/compiler/transformer.py2
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: