Commits

Alex Gaynor  committed 0425059

Remove another pyobj usage.

  • Participants
  • Parent commits a21178a
  • Branches kill-someobject

Comments (0)

Files changed (3)

File pypy/rpython/ootypesystem/rdict.py

 from pypy.rpython.ootypesystem import ootype
 from pypy.rlib import objectmodel
 from pypy.rpython import rmodel, llinterp
+# This is needed by other things, don't remove!
+from pypy.rpython.rdict import rtype_newdict
 
 
 class DictRepr(AbstractDictRepr):

File pypy/rpython/rdict.py

-from pypy.tool.pairtype import pairtype
 from pypy.annotation import model as annmodel
-from pypy.objspace.flow.model import Constant
 from pypy.rpython.lltypesystem import lltype
-from pypy.rlib.rarithmetic import r_uint
-from pypy.rlib.objectmodel import hlinvoke
-from pypy.rlib import objectmodel
 from pypy.rpython import rmodel
 
 
 def rtype_newdict(hop):
     hop.inputargs()    # no arguments expected
     r_dict = hop.r_result
-    if r_dict == robject.pyobj_repr: # special case: SomeObject: SomeObject dicts!
-        cdict = hop.inputconst(robject.pyobj_repr, dict)
-        return hop.genop('simple_call', [cdict], resulttype = robject.pyobj_repr)
     cDICT = hop.inputconst(lltype.Void, r_dict.DICT)
     v_result = hop.gendirectcall(hop.rtyper.type_system.rdict.ll_newdict, cDICT)
     return v_result

File pypy/translator/interactive.py

-import optparse
-
-import autopath
 from pypy.translator.translator import TranslationContext
 from pypy.translator import driver
 
+
 DEFAULTS = {
   'translation.backend': None,
   'translation.type_system': None,