浏览代码

Fix imports in CLI: core and modules aren't needed in the argument parser

tags/v1.0
JustAnotherArchivist 3 年前
父节点
当前提交
715420e298
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. +1
    -2
      codearchiver/cli.py

+ 1
- 2
codearchiver/cli.py 查看文件

@@ -135,8 +135,6 @@ def _dump_stack_and_locals(trace, exc = None):


def parse_args():
import codearchiver.core
import codearchiver.modules
import codearchiver.version

parser = argparse.ArgumentParser(formatter_class = argparse.ArgumentDefaultsHelpFormatter)
@@ -186,6 +184,7 @@ def main():
configure_logging(args.verbosity, args.dumpLocals)

import codearchiver.core
import codearchiver.modules
with _dump_locals_on_exception():
inputUrl = codearchiver.core.InputURL(args.url)
module = codearchiver.core.get_module_instance(inputUrl)


正在加载...
取消
保存