Commits

Alex Gaynor committed d2fdac3

kill some dead code and whatnot

Comments (0)

Files changed (1)

rpython/jit/metainterp/optimizeopt/virtualize.py

             iteritems = self._fields.iteritems()
             if not we_are_translated(): #random order is fine, except for tests
                 iteritems = list(iteritems)
-                iteritems.sort(key = lambda (x,y): x.sort_key())
+                iteritems.sort(key=lambda (x, y): x.sort_key())
             for ofs, value in iteritems:
                 if value.is_null():
                     continue
             # random order is fine, except for tests
             if not we_are_translated():
                 iteritems = list(iteritems)
-                iteritems.sort(key = lambda (x, y): x.sort_key())
+                iteritems.sort(key=lambda (x, y): x.sort_key())
             for descr, value in iteritems:
                 subbox = value.force_box(optforce)
                 op = ResOperation(rop.SETINTERIORFIELD_GC,
         if not we_are_translated():
             op.name = 'FORCE ' + self.source_op.name
         optforce.emit_operation(self.source_op)
-        self.box = box = self.source_op.result
+        self.box = self.source_op.result
         for i in range(len(self.buffer.offsets)):
             # get a pointer to self.box+offset
             offset = self.buffer.offsets[i]
         self.emit_operation(op)
 
     def optimize_VIRTUAL_REF(self, op):
-        indexbox = op.getarg(1)
-        #
         # get some constants
         vrefinfo = self.optimizer.metainterp_sd.virtualref_info
         c_cls = vrefinfo.jit_virtual_ref_const_class
         objbox = op.getarg(1)
         if not CONST_NULL.same_constant(objbox):
             seo(ResOperation(rop.SETFIELD_GC, op.getarglist(), None,
-                             descr = vrefinfo.descr_forced))
+                             descr=vrefinfo.descr_forced))
 
         # - set 'virtual_token' to TOKEN_NONE (== NULL)
         args = [op.getarg(0), CONST_NULL]