Skip to content

Commit 2199bfa

Browse files
committed
Move scancode.utils to commoncode.cliutils #2233
These utilities are used by extractcode and scancode CLI. Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent a2b82a3 commit 2199bfa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/extractcode/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
from scancode_config import __version__
4141
from scancode.api import extract_archives
4242
from scancode import print_about
43-
from scancode import utils
43+
from commoncode import cliutils
4444

4545

4646
echo_stderr = partial(click.secho, err=True)
@@ -76,7 +76,7 @@ def print_version(ctx, param, value):
7676
'''
7777

7878

79-
class ExtractCommand(utils.BaseCommand):
79+
class ExtractCommand(cliutils.BaseCommand):
8080
short_usage_help = '''
8181
Try 'extractcode --help' for help on options and arguments.'''
8282

@@ -166,7 +166,7 @@ def display_extract_summary():
166166

167167
if not quiet:
168168
echo_stderr('Extracting archives...', fg='green')
169-
with utils.progressmanager(extractibles,
169+
with cliutils.progressmanager(extractibles,
170170
item_show_func=extract_event, verbose=verbose) as extraction_events:
171171

172172
for xev in extraction_events:

0 commit comments

Comments
 (0)