ソースを参照

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)


読み込み中…
キャンセル
保存