Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Jun 20, 2024
1 parent 15f2c90 commit ff64f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dkist/utils/inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __missing__(self, key):


def _key_clean(key):
key = re.sub("[%s]" % re.escape(string.punctuation), "_", key)
key = re.sub(f"[{re.escape(string.punctuation)}]", "_", key)
key = key.replace(" ", "_")
key = "".join(char for char in key
if char.isidentifier() or char.isnumeric())
Expand Down

0 comments on commit ff64f74

Please sign in to comment.