Deletion of `sys` as it is unuseed
authorfunilrys <redacted>
Fri, 10 Aug 2018 14:00:33 +0000 (16:00 +0200)
committerSteven Black <redacted>
Thu, 6 Sep 2018 03:51:29 +0000 (23:51 -0400)
Also:

  * Fixing flake8 issue

updateReadme.py

index f7fb5d5644c53acc287a3d010b43b2ceaca5ae40..d6f4622c8520d7c009c4c731a9ab9e18a38bb973 100644 (file)
@@ -7,7 +7,6 @@
 
 import json
 import os
-import sys
 import time
 from string import Template
 
@@ -75,17 +74,15 @@ 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('@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('@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()
git clone https://git.99rst.org/PROJECT