mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-16 22:10:26 +00:00
Fix remaining flake8 violations in doc/ and scripts/
doc/web/hooks/__hooks__.py:31:57: E999 SyntaxError: invalid token scripts/analyze_memdump.py:42:12: E999 SyntaxError: invalid syntax scripts/analyze_memdump.py:85:89: E501 line too long (105 > 88 characters) scripts/analyze_memdump.py:132:89: E501 line too long (97 > 88 characters) scripts/update_iana_uri_schemes.py:90:13: E999 SyntaxError: invalid syntax
This commit is contained in:
parent
abbe301b82
commit
cf7aff2770
3 changed files with 8 additions and 7 deletions
|
|
@ -28,9 +28,9 @@ def chmod(config):
|
|||
output_dir = config["output_dir"]
|
||||
for dirpath, dirnames, filenames in os.walk(output_dir):
|
||||
for dirname in dirnames:
|
||||
os.chmod(os.path.join(dirpath, dirname), 0755)
|
||||
os.chmod(os.path.join(dirpath, dirname), 0o755)
|
||||
for filename in filenames:
|
||||
os.chmod(os.path.join(dirpath, filename), 0644)
|
||||
os.chmod(os.path.join(dirpath, filename), 0o644)
|
||||
|
||||
|
||||
hooks = {
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ def print_memorydump(filename):
|
|||
|
||||
om = loader.load(filename, collapse=True)
|
||||
om.remove_expensive_references()
|
||||
print om.summarize()
|
||||
print(om.summarize())
|
||||
return om
|
||||
|
||||
|
||||
|
|
@ -82,7 +82,8 @@ def write_html_header(fp, type_str, encoding):
|
|||
fp.write(HtmlHeader % encoding)
|
||||
fp.write("<h1>Type %s</h1>\n" % type_str)
|
||||
fp.write(
|
||||
"<table><tr><th>Address</th><th>Name</th><th>Size</th><th>Parents</th><th>References</th></tr>\n"
|
||||
"<table><tr><th>Address</th><th>Name</th><th>Size</th><th>Parents</th>"
|
||||
"<th>References</th></tr>\n"
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -129,8 +130,8 @@ def write_html_obj(fp, obj, objs):
|
|||
value=value,
|
||||
)
|
||||
fp.write(
|
||||
"<tr><td>%(address)d</td><td>%(value)s</td><td>%(size)s</td><td>%(children)s</td></tr>\n"
|
||||
% attrs
|
||||
"<tr><td>%(address)d</td><td>%(value)s</td><td>%(size)s</td>"
|
||||
"<td>%(children)s</td></tr>\n" % attrs
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ def main(args):
|
|||
other=get_regex(iana_uri_schemes_other),
|
||||
)
|
||||
res = template % args
|
||||
print res
|
||||
print(res)
|
||||
return 0
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue