summaryrefslogtreecommitdiff
path: root/src/pip/_internal/commands/install.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/pip/_internal/commands/install.py')
-rw-r--r--src/pip/_internal/commands/install.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pip/_internal/commands/install.py b/src/pip/_internal/commands/install.py
index c4273eda9..dc637d876 100644
--- a/src/pip/_internal/commands/install.py
+++ b/src/pip/_internal/commands/install.py
@@ -49,7 +49,7 @@ def get_check_binary_allowed(format_control):
# type: (FormatControl) -> BinaryAllowedPredicate
def check_binary_allowed(req):
# type: (InstallRequirement) -> bool
- canonical_name = canonicalize_name(req.name)
+ canonical_name = canonicalize_name(req.name or "")
allowed_formats = format_control.get_allowed_formats(canonical_name)
return "binary" in allowed_formats