mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 03:25:21 +00:00
fix(pipreqs/pipreqs.py): fix a mistake on args.get
This commit is contained in:
parent
ea191acd36
commit
084ef4b725
@ -169,7 +169,7 @@ def join(f):
|
||||
|
||||
|
||||
def init(args):
|
||||
encoding = args.get('encoding')
|
||||
encoding = args.get('--encoding')
|
||||
candidates = get_all_imports(args['<path>'], encoding=encoding)
|
||||
candidates = get_pkg_names(candidates)
|
||||
logging.debug("Found imports: " + ", ".join(candidates))
|
||||
|
Loading…
x
Reference in New Issue
Block a user