From 28f6aa5f4572383baba89d82020a04c0970e32ee Mon Sep 17 00:00:00 2001 From: "Achim D. Brucker" Date: Fri, 1 Sep 2017 23:24:55 +0100 Subject: [PATCH] Bug fix: indentation --- ExtensionCrawler/js_decomposer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ExtensionCrawler/js_decomposer.py b/ExtensionCrawler/js_decomposer.py index 53ba1a8..d413083 100755 --- a/ExtensionCrawler/js_decomposer.py +++ b/ExtensionCrawler/js_decomposer.py @@ -202,7 +202,7 @@ def analyse_comment_known_libs(zipfile, js_file, js_info, comment): """Search for library specific identifiers in comment block.""" libs = list() if zipfile is not None: - filename = js_file.filename + filename = js_file.filename else: filename = js_file @@ -222,7 +222,7 @@ def analyse_comment_generic_libs(zipfile, js_file, js_info, comment): """Search for generic identifiers in comment block.""" libs = list() if zipfile is not None: - filename = js_file.filename + filename = js_file.filename else: filename = js_file @@ -257,10 +257,10 @@ def analyse_comment_blocks(zipfile, js_file, js_info): if zipfile is not None: with zipfile.open(js_file) as js_file_obj: with io.TextIOWrapper(js_file_obj, js_info['encoding']) as js_text_file_obj: - libs=mince_js_fileobj(js_text_file_obj) + libs = mince_js_fileobj(js_text_file_obj) else: with open(js_file) as js_text_file_obj: - libs=mince_js_fileobj(js_text_file_obj) + libs = mince_js_fileobj(js_text_file_obj) except: libs = list() return libs