Skip to content

Commit c777414

Browse files
committed
Correctly canonicalize skipped package names
1 parent ead43d6 commit c777414

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pip/_internal/commands/list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def run(self, options, args):
152152

153153
skip = set(stdlib_pkgs)
154154
if options.excludes:
155-
skip.update(options.excludes)
155+
skip.update(canonicalize_name(n) for n in options.excludes)
156156

157157
packages: "_ProcessedDists" = [
158158
cast("_DistWithLatestInfo", d)

0 commit comments

Comments
 (0)