[pypy-svn] r75717 - pypy/branch/fast-forward/pypy/module/marshal

benjamin at codespeak.net benjamin at codespeak.net
Thu Jul 1 15:32:08 CEST 2010


Author: benjamin
Date: Thu Jul  1 15:32:07 2010
New Revision: 75717

Modified:
   pypy/branch/fast-forward/pypy/module/marshal/interp_marshal.py
Log:
less hacky hack

Modified: pypy/branch/fast-forward/pypy/module/marshal/interp_marshal.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/marshal/interp_marshal.py	(original)
+++ pypy/branch/fast-forward/pypy/module/marshal/interp_marshal.py	Thu Jul  1 15:32:07 2010
@@ -222,8 +222,7 @@
     def dump_w_obj(self, w_obj):
         space = self.space
         if (space.type(w_obj).is_heaptype() and
-            not space.eq_w(space.getattr(w_obj, space.wrap("__module__")),
-                           space.wrap("array"))):
+            space.lookup(w_obj, "__buffer__") is None):
             w_err = space.wrap("only builtins can be marshaled")
             raise OperationError(space.w_ValueError, w_err)
         try:



More information about the Pypy-commit mailing list