From: Artem Bityutskiy Date: Mon, 18 Feb 2013 13:57:38 +0000 (+0200) Subject: TransRead: minor nicification X-Git-Tag: v2.1~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f3686678ccb0128790a97c55c1ac586b2a196c5;p=tools%2Fbmap-tools.git TransRead: minor nicification 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 --- diff --git a/bmaptools/TransRead.py b/bmaptools/TransRead.py index 66488a9..04793e8 100644 --- a/bmaptools/TransRead.py +++ b/bmaptools/TransRead.py @@ -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. """