Skip to content

Commit 1028cb9

Browse files
committed
Support legacy filenames with an unnormalized dot.
1 parent e7d5929 commit 1028cb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

importlib_metadata/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ def search(self, name):
473473
for child in self.children():
474474
n_low = child.lower()
475475
if (n_low in name.exact_matches
476-
or n_low.startswith(name.prefix)
476+
or n_low.replace('.', '_').startswith(name.prefix)
477477
and n_low.endswith(name.suffixes)
478478
# legacy case:
479479
or self.is_egg(name) and n_low == 'egg-info'):

0 commit comments

Comments
 (0)