aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2016-05-02 17:22:25 -0700
committerPhilip Jenvey <pjenvey@underboss.org>2016-05-02 17:22:25 -0700
commit73f59568ab12a28908939e37a8060da55aad97e0 (patch)
treee848b761865dc8404abb465ea8ecaf35de8f20f7 /pypy/objspace/std/bytesobject.py
parentmerge oefmt (2faccce) oefmt pypy/interpreter/ (diff)
parentoefmt pypy/{objspace,tool}/ (diff)
downloadpypy-73f59568ab12a28908939e37a8060da55aad97e0.tar.gz
pypy-73f59568ab12a28908939e37a8060da55aad97e0.tar.bz2
pypy-73f59568ab12a28908939e37a8060da55aad97e0.zip
merge oefmt (b974474) oefmt pypy/{objspace,tool}/
Diffstat (limited to 'pypy/objspace/std/bytesobject.py')
-rw-r--r--pypy/objspace/std/bytesobject.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pypy/objspace/std/bytesobject.py b/pypy/objspace/std/bytesobject.py
index c58b14cb5a..412750571e 100644
--- a/pypy/objspace/std/bytesobject.py
+++ b/pypy/objspace/std/bytesobject.py
@@ -446,8 +446,8 @@ class W_BytesObject(W_AbstractBytesObject):
return StringBuffer(self._value)
def writebuf_w(self, space):
- raise OperationError(space.w_TypeError, space.wrap(
- "Cannot use string as modifiable buffer"))
+ raise oefmt(space.w_TypeError,
+ "Cannot use string as modifiable buffer")
charbuf_w = str_w