Skip to content

Commit

Permalink
Merge pull request #4578 from ESMCI/jgfouca/raw_string_chars
Browse files Browse the repository at this point in the history
Fix a string that should be raw

The \ character was not intended to be escaping anything, so the string should have been raw.

Test suite: pylint
Test baseline:
Test namelist changes:
Test status: bit for bit

Fixes [CIME Github issue #]

User interface changes?:

Update gh-pages html (Y/N)?:
  • Loading branch information
jgfouca authored Feb 7, 2024
2 parents 24ff828 + 206eece commit bc562d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CIME/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def check_name(fullname, additional_chars=None, fullpath=False):
False
"""

chars = "+*?<>/{}[\]~`@:" # pylint: disable=anomalous-backslash-in-string
chars = r"+*?<>/{}[\]~`@:"
if additional_chars is not None:
chars += additional_chars
if fullname.endswith("/"):
Expand Down

0 comments on commit bc562d6

Please sign in to comment.