Author: Matti Picus <matti.pi...@gmail.com>
Branch: 
Changeset: r95855:3935d273ac91
Date: 2019-02-06 10:16 +0100
http://bitbucket.org/pypy/pypy/changeset/3935d273ac91/

Log:    Backed out changeset: 236bea4de5e1

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:
-        w_stream = rzlib.deflateInit(level, method, wbits, memLevel, strategy)
+        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:
-        w_stream = rzlib.inflateInit(wbits)
+        stream = rzlib.inflateInit(wbits)
     except rzlib.RZlibError as e:
         raise zlib_error(space, e.msg)
     except ValueError:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to