Skip to content

Commit

Permalink
fix escape warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kellyjonbrazil committed Mar 14, 2024
1 parent 36de08a commit 50638cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jc/parsers/dir.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""jc - JSON Convert `dir` command output parser
r"""jc - JSON Convert `dir` command output parser
Options supported:
- `/T timefield`
Expand Down
4 changes: 2 additions & 2 deletions jc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def remove_quotes(data: str) -> str:


def normalize_key(data: str) -> str:
"""
r"""
Normalize a key name by shifting to lower-case and converting special
characters to underscores.
Expand All @@ -229,7 +229,7 @@ def normalize_key(data: str) -> str:
string
"""
special = '''!"#$%&'()*+,-./:;<=>?@[\]^`{|}~ '''
special = r'''!"#$%&'()*+,-./:;<=>?@[\]^`{|}~ '''
initial_underscore = False
data = data.strip().lower()

Expand Down

0 comments on commit 50638cc

Please sign in to comment.