From 50638cc11ed0eeb48b3c522102ebc574499c4e97 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Thu, 14 Mar 2024 12:06:34 -0700 Subject: [PATCH] fix escape warnings --- jc/parsers/dir.py | 2 +- jc/utils.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jc/parsers/dir.py b/jc/parsers/dir.py index 0115fce6..d522d94a 100644 --- a/jc/parsers/dir.py +++ b/jc/parsers/dir.py @@ -1,4 +1,4 @@ -"""jc - JSON Convert `dir` command output parser +r"""jc - JSON Convert `dir` command output parser Options supported: - `/T timefield` diff --git a/jc/utils.py b/jc/utils.py index a3627092..b5076a38 100644 --- a/jc/utils.py +++ b/jc/utils.py @@ -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()