diff --git a/doc/web/hooks/__hooks__.py b/doc/web/hooks/__hooks__.py
index 91b04888..522f0a88 100644
--- a/doc/web/hooks/__hooks__.py
+++ b/doc/web/hooks/__hooks__.py
@@ -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 = {
diff --git a/scripts/analyze_memdump.py b/scripts/analyze_memdump.py
index 3f0f9cf9..cfcebf22 100755
--- a/scripts/analyze_memdump.py
+++ b/scripts/analyze_memdump.py
@@ -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("
Type %s
\n" % type_str)
fp.write(
- "| Address | Name | Size | Parents | References |
\n"
+ "| Address | Name | Size | Parents | "
+ "References |
\n"
)
@@ -129,8 +130,8 @@ def write_html_obj(fp, obj, objs):
value=value,
)
fp.write(
- "| %(address)d | %(value)s | %(size)s | %(children)s |
\n"
- % attrs
+ "| %(address)d | %(value)s | %(size)s | "
+ "%(children)s |
\n" % attrs
)
diff --git a/scripts/update_iana_uri_schemes.py b/scripts/update_iana_uri_schemes.py
index 967f0a77..db23b36f 100644
--- a/scripts/update_iana_uri_schemes.py
+++ b/scripts/update_iana_uri_schemes.py
@@ -87,7 +87,7 @@ def main(args):
other=get_regex(iana_uri_schemes_other),
)
res = template % args
- print res
+ print(res)
return 0