Skip to content

Commit 80b6eec

Browse files
Revert accidental reordering
1 parent 3f16ae1 commit 80b6eec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/importlib/_bootstrap_external.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,11 +1622,11 @@ def find_spec(self, fullname, target=None):
16221622
if not tail_module.isascii() and not self._cache_is_normalized:
16231623
self._normalize_cache()
16241624
if _relax_case():
1625-
cache_module = tail_module.lower()
16261625
cache = self._relaxed_path_cache
1626+
cache_module = tail_module.lower()
16271627
else:
1628-
cache_module = tail_module
16291628
cache = self._path_cache
1629+
cache_module = tail_module
16301630
# Check if the module is the name of a directory (and thus a package).
16311631
try:
16321632
cache_path = cache[cache_module]

0 commit comments

Comments
 (0)