diff options
Diffstat (limited to 'FuseArchive')
-rw-r--r-- | FuseArchive/Serializer.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/FuseArchive/Serializer.py b/FuseArchive/Serializer.py index 621d90a..eb14cec 100644 --- a/FuseArchive/Serializer.py +++ b/FuseArchive/Serializer.py @@ -15,10 +15,10 @@ class Serializer: logging.debug( "Going to serialize %s to %s" % ( obj, fh ) ) fh.truncate( 0 ) fh.seek( 0 ) - f = gzip.GzipFile( None, "wb", gzip_compress_level, fh ) - #f = fh + #f = gzip.GzipFile( None, "wb", gzip_compress_level, fh ) + f = fh f.write( Serializer.dumps( obj ) ) - del f + #del f fh.flush() @staticmethod @@ -39,8 +39,8 @@ class Serializer: def loadfh( fh ): logging.debug( "Going to load from %s" % fh ) fh.seek( 0 ) - f = gzip.GzipFile( None, "rb", gzip_compress_level, fh ) - #f = fh + #f = gzip.GzipFile( None, "rb", gzip_compress_level, fh ) + f = fh magic = Serializer.loads( f.read() ) return( magic ) |