Skip to content

Commit

Permalink
map -> mapping as map is a reserved word
Browse files Browse the repository at this point in the history
  • Loading branch information
zas committed Nov 13, 2024
1 parent 5232c9f commit ce90b29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions picard/util/textencoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,9 @@ def error_repl(e, repl="_"):
return interim.encode('ascii', 'repl').decode('ascii')


def _replace_char(map, ch, pathsave=False, win_compat=False):
def _replace_char(mapping, ch, pathsave=False, win_compat=False):
try:
result = map[ch]
result = mapping[ch]
if ch != result and pathsave:
result = sanitize_filename(result, win_compat=win_compat)
return result
Expand Down

0 comments on commit ce90b29

Please sign in to comment.