Procházet zdrojové kódy

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

tags/v1.0
JustAnotherArchivist před 3 roky
rodič
revize
715420e298
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  1. +1
    -2
      codearchiver/cli.py

+ 1
- 2
codearchiver/cli.py Zobrazit soubor

@@ -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)


Načítá se…
Zrušit
Uložit