mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-07 12:05:33 +00:00
Fix for TypeError for implicit conversion
`package_import` is a list, and on Python 3.4 it must be implicitly converted to a string before concatenation.
This commit is contained in:
parent
5c6f05dd3e
commit
505ee3b939
@ -107,7 +107,7 @@ def get_locally_installed_packages():
|
|||||||
break
|
break
|
||||||
if package_import_name == "":
|
if package_import_name == "":
|
||||||
logging.debug(
|
logging.debug(
|
||||||
'Could not determine import name for package ' + package_import)
|
'Could not determine import name for package ' + str(package_import))
|
||||||
else:
|
else:
|
||||||
packages[package_import_name] = {
|
packages[package_import_name] = {
|
||||||
'version': package[1].replace(".dist", ""),
|
'version': package[1].replace(".dist", ""),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user