Fixed some violations reported by pylint.

This commit is contained in:
Adam Waldenberg 2013-06-06 03:05:30 +02:00
parent 0e3ce9b339
commit a31ab18ba0
2 changed files with 3 additions and 3 deletions

View file

@ -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")

View file

@ -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).")