Просмотр исходного кода

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

tags/v1.0
JustAnotherArchivist 3 лет назад
Родитель
Сommit
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)


Загрузка…
Отмена
Сохранить