Skip to content

Commit c14ce4f

Browse files
picnixzbarneygale
andauthored
Update Lib/fnmatch.py
Co-authored-by: Barney Gale <[email protected]>
1 parent bb6c3ee commit c14ce4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/fnmatch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ def translate(pat):
7777
There is no way to quote meta-characters.
7878
"""
7979

80-
parts, indices = _translate(pat, '*', '.')
81-
return _join_translated_parts(parts, indices)
80+
parts, star_indices = _translate(pat, '*', '.')
81+
return _join_translated_parts(parts, star_indices)
8282

8383
_re_setops_sub = re.compile(r'([&~|])').sub
8484
_re_escape = functools.lru_cache(maxsize=512)(re.escape)

0 commit comments

Comments
 (0)