1. Pypy
  2. Untitled project
  3. pypy

Commits

Alex Gaynor  committed 061674d

random cleanups

  • Participants
  • Parent commits 205ceff
  • Branches default

Comments (0)

Files changed (3)

File pypy/interpreter/astcompiler/assemble.py

View file
                     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."""

File pypy/interpreter/astcompiler/astbuilder.py

View file
                         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:
         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

File pypy/interpreter/pycode.py

View file
     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()