Author: Łukasz Langa <[email protected]>
Branch: py3.6
Changeset: r95786:241160c766fd
Date: 2019-02-04 14:33 +0100
http://bitbucket.org/pypy/pypy/changeset/241160c766fd/
Log: Merge default
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
@@ -44,10 +44,10 @@
return OperationError(w_error, space.newtext(msg))
-@unwrap_spec(string='bufferstr', level=int)
-def compress(space, string, level=rzlib.Z_DEFAULT_COMPRESSION):
+@unwrap_spec(data='bufferstr', level=int)
+def compress(space, data, level=rzlib.Z_DEFAULT_COMPRESSION):
"""
- compress(string[, level]) -- Returned compressed string.
+ compress(data[, level]) -- Returned compressed string.
Optional arg level is the compression level, in 1-9.
"""
@@ -57,7 +57,7 @@
except ValueError:
raise zlib_error(space, "Bad compression level")
try:
- result = rzlib.compress(stream, string, rzlib.Z_FINISH)
+ result = rzlib.compress(stream, data, rzlib.Z_FINISH)
finally:
rzlib.deflateEnd(stream)
except rzlib.RZlibError as e:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit