TransRead: minor nicification
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Mon, 18 Feb 2013 13:57:38 +0000 (15:57 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Mon, 18 Feb 2013 14:35:20 +0000 (16:35 +0200)
The 'decompress_func' argument of the '_CompressedFile' class constructor is
optional, so make it be 'None' by default.

Change-Id: I94e8fc185ae4ccc3e1fc2312dc943908dc7ecdd9
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
bmaptools/TransRead.py

index 66488a9..04793e8 100644 (file)
@@ -51,7 +51,7 @@ class _CompressedFile:
     """ This class implements transparent reading from a compressed file-like
     object and decompressing its contents on-the-fly. """
 
-    def __init__(self, file_obj, decompress_func):
+    def __init__(self, file_obj, decompress_func = None):
         """ Class constructor. The 'file_ojb' argument is the compressed
         file-like object to read from. The 'decompress_func()' function is a
         function to use for decompression. """