Bug fix: indentation
This commit is contained in:
parent
5c987833a4
commit
28f6aa5f45
|
@ -202,7 +202,7 @@ def analyse_comment_known_libs(zipfile, js_file, js_info, comment):
|
||||||
"""Search for library specific identifiers in comment block."""
|
"""Search for library specific identifiers in comment block."""
|
||||||
libs = list()
|
libs = list()
|
||||||
if zipfile is not None:
|
if zipfile is not None:
|
||||||
filename = js_file.filename
|
filename = js_file.filename
|
||||||
else:
|
else:
|
||||||
filename = js_file
|
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."""
|
"""Search for generic identifiers in comment block."""
|
||||||
libs = list()
|
libs = list()
|
||||||
if zipfile is not None:
|
if zipfile is not None:
|
||||||
filename = js_file.filename
|
filename = js_file.filename
|
||||||
else:
|
else:
|
||||||
filename = js_file
|
filename = js_file
|
||||||
|
|
||||||
|
@ -257,10 +257,10 @@ def analyse_comment_blocks(zipfile, js_file, js_info):
|
||||||
if zipfile is not None:
|
if zipfile is not None:
|
||||||
with zipfile.open(js_file) as js_file_obj:
|
with zipfile.open(js_file) as js_file_obj:
|
||||||
with io.TextIOWrapper(js_file_obj, js_info['encoding']) as js_text_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:
|
else:
|
||||||
with open(js_file) as js_text_file_obj:
|
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:
|
except:
|
||||||
libs = list()
|
libs = list()
|
||||||
return libs
|
return libs
|
||||||
|
|
Loading…
Reference in New Issue