1. Pypy
  2. Untitled project
  3. pypy

Commits

Philip Jenvey  committed 5144606

adjust per latest cffi: py3 str() now acts like repr()

  • Participants
  • Parent commits 3680c35
  • Branches py3k

Comments (0)

Files changed (1)

File pypy/module/_cffi_backend/cbuffer.py

View file
     def descr__buffer__(self, space):
         return self.buffer.descr__buffer__(space)
 
-    def descr_str(self, space):
-        return space.wrap(self.buffer.as_str())
-
 
 MiniBuffer.typedef = TypeDef(
     "buffer",
     __setitem__ = interp2app(MiniBuffer.descr_setitem),
     __buffer__ = interp2app(MiniBuffer.descr__buffer__),
     __weakref__ = make_weakref_descr(MiniBuffer),
-    __str__ = interp2app(MiniBuffer.descr_str),
     )
 MiniBuffer.typedef.acceptable_as_base_class = False