[pypy-commit] pypy memoryview-attributes: typo, module name incomplete, moved import to avoid cyclic dep.
plan_rich
pypy.commits at gmail.com
Mon Aug 22 05:08:03 EDT 2016
Author: Richard Plangger <planrichi at gmail.com>
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
More information about the pypy-commit
mailing list