changeset 5659:5ea837c515d9 stable

test2rst: now that we don't use directory mode, remove it too
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 09 Nov 2020 23:08:15 +0800
parents 398a3f0ca07a
children 9d6c3e227455
files docs/test2rst.py
diffstat 1 files changed, 1 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/docs/test2rst.py	Mon Nov 09 22:37:05 2020 +0800
+++ b/docs/test2rst.py	Mon Nov 09 23:08:15 2020 +0800
@@ -59,21 +59,7 @@
     return "\n".join(newlines)
 
 
-def main(base):
-    if os.path.isdir(base):
-        one_dir(base)
-    else:
-        one_file(base)
-
-
-def one_dir(base):
-    for fn in sorted(os.listdir(base)):
-        if not fn.endswith('.t'):
-            continue
-        one_file(os.path.join(base, fn))
-
-
-def one_file(path):
+def main(path):
     with open(path) as f:
         content = f.read()
     rst = rstify(content)