Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r51372:3843c6835175
Date: 2012-01-16 23:54 +0100
http://bitbucket.org/pypy/pypy/changeset/3843c6835175/

Log:    bin/checkmodule.py: Add support for space.wrabytes

diff --git a/pypy/objspace/fake/objspace.py b/pypy/objspace/fake/objspace.py
--- a/pypy/objspace/fake/objspace.py
+++ b/pypy/objspace/fake/objspace.py
@@ -157,6 +157,10 @@
         "NOT_RPYTHON"
         raise NotImplementedError
 
+    def wrapbytes(self, x):
+        assert isinstance(x, str)
+        return w_some_obj()
+
     def _see_interp2app(self, interp2app):
         "NOT_RPYTHON"
         activation = interp2app._code.activation
@@ -278,7 +282,7 @@
     for name in (ObjSpace.ConstantTable +
                  ObjSpace.ExceptionTable +
                  ['int', 'str', 'float', 'long', 'tuple', 'list',
-                  'dict', 'unicode', 'complex', 'slice', 'bool',
+                  'dict', 'bytes', 'complex', 'slice', 'bool',
                   'type', 'text', 'object']):
         setattr(FakeObjSpace, 'w_' + name, w_some_obj())
     #
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to