From 7f3686678ccb0128790a97c55c1ac586b2a196c5 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Mon, 18 Feb 2013 15:57:38 +0200 Subject: [PATCH] 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 --- bmaptools/TransRead.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. """ -- 2.7.4