[Python-checkins] python/dist/src/Lib/compiler ast.py, 1.24,
1.25 pycodegen.py, 1.69, 1.70 transformer.py, 1.41, 1.42
tim_one at users.sourceforge.net
tim_one at users.sourceforge.net
Wed Aug 4 04:36:20 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib/compiler
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30068/Lib/compiler
Modified Files:
ast.py pycodegen.py transformer.py
Log Message:
Whitespace normalization.
Index: ast.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/compiler/ast.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** ast.py 2 Aug 2004 06:09:53 -0000 1.24
--- ast.py 4 Aug 2004 02:36:17 -0000 1.25
***************
*** 608,612 ****
self.argnames = ['[outmost-iterable]']
self.varargs = self.kwargs = None
!
--- 608,612 ----
self.argnames = ['[outmost-iterable]']
self.varargs = self.kwargs = None
!
***************
*** 786,790 ****
if flags & CO_VARKEYWORDS:
self.kwargs = 1
!
--- 786,790 ----
if flags & CO_VARKEYWORDS:
self.kwargs = 1
!
Index: pycodegen.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/compiler/pycodegen.py,v
retrieving revision 1.69
retrieving revision 1.70
diff -C2 -d -r1.69 -r1.70
*** pycodegen.py 2 Aug 2004 06:09:53 -0000 1.69
--- pycodegen.py 4 Aug 2004 02:36:17 -0000 1.70
***************
*** 373,377 ****
else:
ndecorators = 0
!
gen = self.FunctionGen(node, self.scopes, isLambda,
self.class_name, self.get_module())
--- 373,377 ----
else:
ndecorators = 0
!
gen = self.FunctionGen(node, self.scopes, isLambda,
self.class_name, self.get_module())
***************
*** 390,394 ****
self.emit('LOAD_CONST', gen)
self.emit('MAKE_FUNCTION', len(node.defaults))
!
for i in range(ndecorators):
self.emit('CALL_FUNCTION', 1)
--- 390,394 ----
self.emit('LOAD_CONST', gen)
self.emit('MAKE_FUNCTION', len(node.defaults))
!
for i in range(ndecorators):
self.emit('CALL_FUNCTION', 1)
Index: transformer.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/compiler/transformer.py,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** transformer.py 2 Aug 2004 06:09:53 -0000 1.41
--- transformer.py 4 Aug 2004 02:36:18 -0000 1.42
***************
*** 199,203 ****
return item
!
def decorator(self, nodelist):
# '@' dotted_name [ '(' [arglist] ')' ]
--- 199,203 ----
return item
!
def decorator(self, nodelist):
# '@' dotted_name [ '(' [arglist] ')' ]
***************
*** 213,219 ****
else:
expr = funcname
!
return expr
!
def decorators(self, nodelist):
# decorators: decorator ([NEWLINE] decorator)* NEWLINE
--- 213,219 ----
else:
expr = funcname
!
return expr
!
def decorators(self, nodelist):
# decorators: decorator ([NEWLINE] decorator)* NEWLINE
***************
*** 229,233 ****
i += 1
return Decorators(items)
!
def funcdef(self, nodelist):
# -6 -5 -4 -3 -2 -1
--- 229,233 ----
i += 1
return Decorators(items)
!
def funcdef(self, nodelist):
# -6 -5 -4 -3 -2 -1
***************
*** 241,245 ****
assert len(nodelist) == 5
decorators = None
!
lineno = nodelist[-4][2]
name = nodelist[-4][1]
--- 241,245 ----
assert len(nodelist) == 5
decorators = None
!
lineno = nodelist[-4][2]
name = nodelist[-4][1]
More information about the Python-checkins
mailing list