Author: Alex Gaynor <[email protected]>
Branch:
Changeset: r67640:061674dab643
Date: 2013-10-26 16:23 -0700
http://bitbucket.org/pypy/pypy/changeset/061674dab643/
Log: random cleanups
diff --git a/pypy/interpreter/astcompiler/assemble.py
b/pypy/interpreter/astcompiler/assemble.py
--- a/pypy/interpreter/astcompiler/assemble.py
+++ b/pypy/interpreter/astcompiler/assemble.py
@@ -412,7 +412,7 @@
done = True
break
if block.next_block and not done:
- max_depth = self._next_stack_depth_walk(block.next_block, depth)
+ self._next_stack_depth_walk(block.next_block, depth)
def _build_lnotab(self, blocks):
"""Build the line number table for tracebacks and tracing."""
diff --git a/pypy/interpreter/astcompiler/astbuilder.py
b/pypy/interpreter/astcompiler/astbuilder.py
--- a/pypy/interpreter/astcompiler/astbuilder.py
+++ b/pypy/interpreter/astcompiler/astbuilder.py
@@ -285,7 +285,6 @@
exec_node.column)
def handle_assert_stmt(self, assert_node):
- child_count = len(assert_node.children)
expr = self.handle_expr(assert_node.children[1])
msg = None
if len(assert_node.children) == 4:
@@ -1061,7 +1060,6 @@
if negative:
raw = "-" + raw
w_num_str = self.space.wrap(raw)
- w_index = None
w_base = self.space.wrap(base)
if raw[-1] in "lL":
tp = self.space.w_long
diff --git a/pypy/interpreter/pycode.py b/pypy/interpreter/pycode.py
--- a/pypy/interpreter/pycode.py
+++ b/pypy/interpreter/pycode.py
@@ -251,7 +251,6 @@
def exec_host_bytecode(self, w_globals, w_locals):
if sys.version_info < (2, 7):
raise Exception("PyPy no longer supports Python 2.6 or lower")
- from pypy.interpreter.pyframe import PyFrame
frame = self.space.FrameClass(self.space, self, w_globals, None)
frame.setdictscope(w_locals)
return frame.run()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit