diff options
author | Philip Jenvey <pjenvey@underboss.org> | 2016-05-02 17:22:25 -0700 |
---|---|---|
committer | Philip Jenvey <pjenvey@underboss.org> | 2016-05-02 17:22:25 -0700 |
commit | 73f59568ab12a28908939e37a8060da55aad97e0 (patch) | |
tree | e848b761865dc8404abb465ea8ecaf35de8f20f7 /pypy/objspace/std/bytesobject.py | |
parent | merge oefmt (2faccce) oefmt pypy/interpreter/ (diff) | |
parent | oefmt pypy/{objspace,tool}/ (diff) | |
download | pypy-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.py | 4 |
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 |