浏览代码

remove print statments

Getty Ritter 2 年之前
父节点
当前提交
26342a2d5e
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      main.py

+ 0 - 3
main.py

@@ -72,7 +72,6 @@ class Path:
         tgt = f'{os.path.join(*paths)}/'
         for path in sys.argv[2:]:
             if tgt in path:
-                print(f'{tgt} in {path}')
                 chunks = path.split('/')
                 idx = chunks.index(paths[-1])
                 stuff.append(chunks[idx +1])
@@ -195,7 +194,6 @@ def main():
         # it in the categories list first
         category_metadata = [c for c in categories if c['slug'] == slug]
         if not category_metadata:
-            print(f'skipping {slug}')
             continue
 
         with Path.write('category', slug, 'index.html') as f:
@@ -213,7 +211,6 @@ def main():
     shutil.copy('static/main.css', Path.out('static', 'main.css'))
     shutil.copy('static/icon.png', Path.out('static', 'icon.png'))
 
-    print(f'writing to {out_file}')
     shutil.make_archive('output', 'zip', Path.OUTDIR.name)
     shutil.move('output.zip', out_file)
     Path.OUTDIR.cleanup()