Author: Philip Jenvey <[email protected]>
Branch:
Changeset: r84167:7dc2f3884df2
Date: 2016-05-02 19:58 -0700
http://bitbucket.org/pypy/pypy/changeset/7dc2f3884df2/
Log: None more appropriate
diff --git a/pypy/module/bz2/interp_bz2.py b/pypy/module/bz2/interp_bz2.py
--- a/pypy/module/bz2/interp_bz2.py
+++ b/pypy/module/bz2/interp_bz2.py
@@ -160,7 +160,7 @@
raise oefmt(space.w_SystemError,
"the bz2 library has received wrong parameters")
elif bzerror == BZ_MEM_ERROR:
- raise OperationError(space.w_MemoryError, space.wrap(""))
+ raise OperationError(space.w_MemoryError, space.w_None)
elif bzerror in (BZ_DATA_ERROR, BZ_DATA_ERROR_MAGIC):
raise oefmt(space.w_IOError, "invalid data stream")
elif bzerror == BZ_IO_ERROR:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit