mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-11-16 00:28:25 +01:00
The format.__output_html_template__(...) function now cleans up.
This commit is contained in:
parent
91d94446a7
commit
346645d655
1 changed files with 5 additions and 1 deletions
|
@ -53,7 +53,11 @@ def is_interactive_format():
|
|||
def __output_html_template__(name):
|
||||
template_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), name)
|
||||
file_r = open(template_path, "rb")
|
||||
return file_r.read().decode("utf-8", "replace")
|
||||
template = file_r.read().decode("utf-8", "replace")
|
||||
|
||||
file_r.close()
|
||||
return template
|
||||
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue