Author: Matti Picus <[email protected]>
Branch:
Changeset: r95854:236bea4de5e1
Date: 2019-02-06 09:53 +0100
http://bitbucket.org/pypy/pypy/changeset/236bea4de5e1/
Log: typo in c5c3ad13d149 ?
diff --git a/pypy/module/zlib/interp_zlib.py b/pypy/module/zlib/interp_zlib.py
--- a/pypy/module/zlib/interp_zlib.py
+++ b/pypy/module/zlib/interp_zlib.py
@@ -225,7 +225,7 @@
w_stream = space.allocate_instance(Compress, w_subtype)
w_stream = space.interp_w(Compress, w_stream)
try:
- stream = rzlib.deflateInit(level, method, wbits, memLevel, strategy)
+ w_stream = rzlib.deflateInit(level, method, wbits, memLevel, strategy)
except rzlib.RZlibError as e:
raise zlib_error(space, e.msg)
except ValueError:
@@ -262,9 +262,9 @@
"""
ZLibObject.__init__(self, space)
- self.stream = stream
self.unused_data = unused_data
self.unconsumed_tail = unconsumed_tail
+ self.stream = stream
self.register_finalizer(space)
def _finalize_(self):
@@ -368,7 +368,7 @@
w_stream = space.allocate_instance(Decompress, w_subtype)
w_stream = space.interp_w(Decompress, w_stream)
try:
- stream = rzlib.inflateInit(wbits)
+ w_stream = rzlib.inflateInit(wbits)
except rzlib.RZlibError as e:
raise zlib_error(space, e.msg)
except ValueError:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit