[Python-checkins] python/dist/src/Lib/compiler pycodegen.py, 1.67,
1.68 symbols.py, 1.14, 1.15
tim_one at users.sourceforge.net
tim_one at users.sourceforge.net
Wed Jul 7 22:54:49 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib/compiler
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28101/Lib/compiler
Modified Files:
pycodegen.py symbols.py
Log Message:
Whitespace normalization.
Index: pycodegen.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/compiler/pycodegen.py,v
retrieving revision 1.67
retrieving revision 1.68
diff -C2 -d -r1.67 -r1.68
*** pycodegen.py 19 May 2004 08:20:07 -0000 1.67
--- pycodegen.py 7 Jul 2004 20:54:46 -0000 1.68
***************
*** 672,676 ****
start = self.newBlock()
anchor = self.newBlock()
!
if node.is_outmost:
self.loadName('[outmost-iterable]')
--- 672,676 ----
start = self.newBlock()
anchor = self.newBlock()
!
if node.is_outmost:
self.loadName('[outmost-iterable]')
Index: symbols.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/compiler/symbols.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** symbols.py 19 May 2004 08:20:08 -0000 1.14
--- symbols.py 7 Jul 2004 20:54:47 -0000 1.15
***************
*** 261,271 ****
def visitGenExprIf(self, node, scope):
self.visit(node.test, scope)
!
def visitLambda(self, node, parent, assign=0):
# Lambda is an expression, so it could appear in an expression
# context where assign is passed. The transformer should catch
# any code that has a lambda on the left-hand side.
! assert not assign
!
for n in node.defaults:
self.visit(n, parent)
--- 261,271 ----
def visitGenExprIf(self, node, scope):
self.visit(node.test, scope)
!
def visitLambda(self, node, parent, assign=0):
# Lambda is an expression, so it could appear in an expression
# context where assign is passed. The transformer should catch
# any code that has a lambda on the left-hand side.
! assert not assign
!
for n in node.defaults:
self.visit(n, parent)
More information about the Python-checkins
mailing list