From: funilrys Date: Fri, 10 Aug 2018 13:56:15 +0000 (+0200) Subject: Deletion of decode_line() as it is not required anymore in python 3 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=62ccd5b084ef6edfe8b3ab5c7e45c6228fe3919f;p=stevenblack-hosts.git Deletion of decode_line() as it is not required anymore in python 3 Also: * Deletion of any PY3 references --- diff --git a/updateReadme.py b/updateReadme.py index d6f4622c8..6491282be 100644 --- a/updateReadme.py +++ b/updateReadme.py @@ -7,6 +7,7 @@ import json import os +import sys import time from string import Template @@ -74,15 +75,17 @@ def main(): with open(os.path.join(data[key]["location"], README_FILENAME), "wt") as out: for line in open(README_TEMPLATE): - line = line.replace('@GEN_DATE@', time.strftime("%B %d %Y", time.gmtime())) - line = line.replace('@EXTENSIONS@', extensions_str) - line = line.replace('@EXTENSIONS_HEADER@', extensions_header) - line = line.replace('@NUM_ENTRIES@', "{:,}".format(data[key]["entries"])) - line = line.replace('@SUBFOLDER@', os.path.join(data[key]["location"], '')) + line = line.replace('@GEN_DATE@', time.strftime("%B %d %Y", + time.gmtime())) + line = line.replace('@EXTENSIONS@',extensions_str) + line = line.replace('@EXTENSIONS_HEADER@', extensions_header)) + line = line.replace('@NUM_ENTRIES@', + "{:,}".format(data[key]["entries"])) + line = line.replace('@SUBFOLDER@', os.path.join( + data[key]["location"], '')) line = line.replace('@TOCROWS@', toc_rows) line = line.replace('@SOURCEROWS@', source_rows) out.write(line) - if __name__ == "__main__": main()