mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-11-16 00:28:25 +01:00
Fixed some violations reported by pylint.
This commit is contained in:
parent
0e3ce9b339
commit
a31ab18ba0
2 changed files with 3 additions and 3 deletions
|
@ -48,8 +48,8 @@ def __output_html_template__(name):
|
||||||
file_r = open(template_path, "rb")
|
file_r = open(template_path, "rb")
|
||||||
return file_r.read().decode("utf-8", "replace")
|
return file_r.read().decode("utf-8", "replace")
|
||||||
|
|
||||||
def __get_zip_file_content__(name, fileName="/html/flot.zip"):
|
def __get_zip_file_content__(name, file_name="/html/flot.zip"):
|
||||||
zip_file = zipfile.ZipFile(basedir.get_basedir() + fileName, "r")
|
zip_file = zipfile.ZipFile(basedir.get_basedir() + file_name, "r")
|
||||||
content = zip_file.read(name)
|
content = zip_file.read(name)
|
||||||
zip_file.close()
|
zip_file.close()
|
||||||
return content.decode("utf-8", "replace")
|
return content.decode("utf-8", "replace")
|
||||||
|
|
|
@ -78,7 +78,7 @@ class Runner:
|
||||||
os.chdir(previous_directory)
|
os.chdir(previous_directory)
|
||||||
|
|
||||||
def __check_python_version__():
|
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])
|
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).")
|
sys.exit("gitinspector requires at leat Python 2.6 to run (version " + python_version + " was found).")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue