[pypy-svn] r66361 - pypy/branch/parser-compiler/pypy/interpreter/astcompiler
benjamin at codespeak.net
benjamin at codespeak.net
Sat Jul 18 15:55:05 CEST 2009
Author: benjamin
Date: Sat Jul 18 15:55:05 2009
New Revision: 66361
Modified:
pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
Log:
rewrite slightly
Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py (original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py Sat Jul 18 15:55:05 2009
@@ -186,9 +186,10 @@
if body:
start = 0
if self.is_docstring(body[0]):
- assert isinstance(body[0], ast.Expr)
+ doc_expr = body[0]
+ assert isinstance(doc_expr, ast.Expr)
start = 1
- body[0].value.walkabout(self)
+ doc_expr.value.walkabout(self)
self.name_op("__doc__", ast.Store)
for i in range(start, len(body)):
body[i].walkabout(self)
More information about the Pypy-commit
mailing list