[pypy-svn] r30000 - pypy/dist/pypy/objspace/std
cfbolz at codespeak.net
cfbolz at codespeak.net
Wed Jul 12 20:32:02 CEST 2006
Author: cfbolz
Date: Wed Jul 12 20:32:01 2006
New Revision: 30000
Modified:
pypy/dist/pypy/objspace/std/dicttype.py
Log:
remove dead comments code
Modified: pypy/dist/pypy/objspace/std/dicttype.py
==============================================================================
--- pypy/dist/pypy/objspace/std/dicttype.py (original)
+++ pypy/dist/pypy/objspace/std/dicttype.py Wed Jul 12 20:32:01 2006
@@ -164,13 +164,6 @@
a registration with copy_reg, instead.
"""
from pypy.interpreter.mixedmodule import MixedModule
- #if space.config.objspace.std.withstrdict:
- # #from pypy.objspace.std.dictstrobject import \
- # # W_DictIter_Keys, W_DictIter_Values, W_DictIter_Items
- #
- #else:
- # #from pypy.objspace.std.dictobject import \
- # # W_DictIter_Keys, W_DictIter_Values, W_DictIter_Items
w_mod = space.getbuiltinmodule('_pickle_support')
mod = space.interp_w(MixedModule, w_mod)
new_inst = mod.get('dictiter_surrogate_new')
@@ -186,6 +179,7 @@
from pypy.objspace.std.dictobject import \
W_DictIter_Keys, W_DictIter_Values, W_DictIter_Items
+ # we cannot call __init__ since we don't have the original dict
if isinstance(w_self, W_DictIter_Keys):
w_clone = space.allocate_instance(W_DictIter_Keys, w_typeobj)
elif isinstance(w_self, W_DictIter_Values):
@@ -195,7 +189,6 @@
else:
msg = "unsupported dictiter type '%s' during pickling" % (w_self, )
raise OperationError(space.w_TypeError, space.wrap(msg))
- # we cannot call __init__ since we don't have the original dict
w_clone.space = space
w_clone.content = w_self.content
if space.config.objspace.std.withstrdict:
More information about the Pypy-commit
mailing list