Skip to content
Snippets Groups Projects
Commit f64af6a6 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

fix gzip

parent 10df2b6e
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ import threading ...@@ -3,7 +3,7 @@ import threading
cdef class ReadWriteGzipFile: cdef class ReadWriteGzipFile:
def __init__(self, str path, int compresslevel = gzip._COMPRESS_LEVEL_FAST): def __init__(self, str path, int compresslevel = 1):
self.path = path self.path = path
self.compress_level = compresslevel self.compress_level = compresslevel
self.rw_file = gzip.GzipFile(path, 'ab', compresslevel=self.compress_level) self.rw_file = gzip.GzipFile(path, 'ab', compresslevel=self.compress_level)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment