mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-08-10 22:41:51 +02:00
fix escape warnings
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
"""jc - JSON Convert `dir` command output parser
|
||||
r"""jc - JSON Convert `dir` command output parser
|
||||
|
||||
Options supported:
|
||||
- `/T timefield`
|
||||
|
@@ -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.
|
||||
|
||||
@@ -229,7 +229,7 @@ def normalize_key(data: str) -> str:
|
||||
|
||||
string
|
||||
"""
|
||||
special = '''!"#$%&'()*+,-./:;<=>?@[\]^`{|}~ '''
|
||||
special = r'''!"#$%&'()*+,-./:;<=>?@[\]^`{|}~ '''
|
||||
initial_underscore = False
|
||||
data = data.strip().lower()
|
||||
|
||||
|
Reference in New Issue
Block a user