From a31ab18ba0b6967f46d1a518945fb042794c5aa5 Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Thu, 6 Jun 2013 03:05:30 +0200 Subject: [PATCH] Fixed some violations reported by pylint. --- format.py | 4 ++-- gitinspector.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/format.py b/format.py index 0f5ad36..f47f6f4 100644 --- a/format.py +++ b/format.py @@ -48,8 +48,8 @@ def __output_html_template__(name): file_r = open(template_path, "rb") return file_r.read().decode("utf-8", "replace") -def __get_zip_file_content__(name, fileName="/html/flot.zip"): - zip_file = zipfile.ZipFile(basedir.get_basedir() + fileName, "r") +def __get_zip_file_content__(name, file_name="/html/flot.zip"): + zip_file = zipfile.ZipFile(basedir.get_basedir() + file_name, "r") content = zip_file.read(name) zip_file.close() return content.decode("utf-8", "replace") diff --git a/gitinspector.py b/gitinspector.py index 26195d5..2ca2706 100755 --- a/gitinspector.py +++ b/gitinspector.py @@ -78,7 +78,7 @@ class Runner: os.chdir(previous_directory) def __check_python_version__(): - if sys.version_info < (2,6): + if sys.version_info < (2, 6): python_version = str(sys.version_info[0]) + "." + str(sys.version_info[1]) sys.exit("gitinspector requires at leat Python 2.6 to run (version " + python_version + " was found).")