summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-05-01 16:31:00 +0300
committerLars Wirzenius <liw@liw.fi>2015-05-01 16:31:00 +0300
commit25c1a5705a8a665660d575a2b46f8378e2d92b5d (patch)
tree51e3c197cfef4cae16399369e43aba543ff6efbe
parent61830c315a9b051a8ab46da487792d0c1e90ec5d (diff)
downloadsummain-25c1a5705a8a665660d575a2b46f8378e2d92b5d.tar.gz
Whitespace and pylint fixes
-rw-r--r--Makefile6
-rw-r--r--summainlib.py2
2 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8a224fe..01d0a98 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,11 @@ check:
rm -f .coverage
cmdtest tests
pep8 summain summainlib.py summainlib_tests.py
- pylint --rcfile=pylint.conf summain summainlib.py summainlib_tests.py
+ if command -v pylint && pylint --version | grep '^pylint [1-9]'; \
+ then \
+ PYTHONPATH=. pylint --rcfile=pylint.conf \
+ summain summainlib.py summainlib_tests.py; \
+ fi
clean:
python setup.py clean
diff --git a/summainlib.py b/summainlib.py
index 2579090..c66ecb5 100644
--- a/summainlib.py
+++ b/summainlib.py
@@ -247,7 +247,7 @@ class FilesystemObject(object):
if stat.S_ISREG(self._stat_result[RESULT_MODE]):
with self.open_file(filename) as f:
while True:
- data = f.read(64*1024) # 64 KiB seems reasonable.
+ data = f.read(64 * 1024) # 64 KiB seems reasonable.
if not data:
break
checksummer.update(data)