Author: Richard Plangger <[email protected]>
Branch: memoryview-attributes
Changeset: r86404:5f1682828946
Date: 2016-08-22 11:07 +0200
http://bitbucket.org/pypy/pypy/changeset/5f1682828946/
Log: typo, module name incomplete, moved import to avoid cyclic dep.
diff --git a/pypy/objspace/std/bytesobject.py b/pypy/objspace/std/bytesobject.py
--- a/pypy/objspace/std/bytesobject.py
+++ b/pypy/objspace/std/bytesobject.py
@@ -19,7 +19,6 @@
decode_object, unicode_from_encoded_object,
unicode_from_string, getdefaultencoding)
from pypy.objspace.std.util import IDTAG_SPECIAL, IDTAG_SHIFT
-from pypy.objspace.std.strbuf import W_StringBufferObject
class W_AbstractBytesObject(W_Root):
@@ -465,6 +464,7 @@
"Cannot use string as modifiable buffer")
def descr_getbuffer(self, space, w_flags):
+ from pypy.objspace.std.strbufobject import W_StringBufferObject
return W_StringBufferObject(StringBuffer(self._value))
charbuf_w = str_w
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit