summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--paramiko/compress.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/paramiko/compress.py b/paramiko/compress.py
index b55f0b1d..5073109c 100644
--- a/paramiko/compress.py
+++ b/paramiko/compress.py
@@ -25,7 +25,8 @@ import zlib
class ZlibCompressor (object):
def __init__(self):
- self.z = zlib.compressobj(9)
+ # Use the default level of zlib compression
+ self.z = zlib.compressobj()
def __call__(self, data):
return self.z.compress(data) + self.z.flush(zlib.Z_FULL_FLUSH)