fix(pipreqs/pipreqs.py): fix a mistake on args.get

This commit is contained in:
EJ Lee 2015-10-22 17:15:43 +09:00
parent ea191acd36
commit 084ef4b725

View File

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