Skip to content

Commit

Permalink
userNameToFileName should not have a mutable default parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
madig committed Oct 7, 2021
1 parent a7e4d86 commit 8270046
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/fontTools/ufoLib/filenames.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class NameTranslationError(Exception):
pass


def userNameToFileName(userName: str, existing=set(), prefix="", suffix=""):
def userNameToFileName(userName: str, existing=(), prefix="", suffix=""):
"""
existing should be a case-insensitive list
existing should be a case-insensitive set
of all existing file names.
>>> userNameToFileName("a") == "a"
Expand Down

0 comments on commit 8270046

Please sign in to comment.