mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Sprinkle raw strings across the code base
tox / pytest is complaining about lots and lots of invalid escape sequences in our code base. Sprinkle raw strings or backslash escapes across the code base to fix most occurences of: DeprecationWarning: invalid escape sequence There is still one warning that keeps repeating, though: source:264: DeprecationWarning: invalid escape sequence \d Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
@@ -76,7 +76,7 @@ invalid_expiration_string = "2020-12-07 19:54:13"
|
||||
expired_expiration_string = "1991-12-07T19:54:13Z"
|
||||
|
||||
# Date in ISO format (2013-12-10T12:00:00)
|
||||
isodate_re = re.compile('^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$')
|
||||
isodate_re = re.compile(r'^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$')
|
||||
|
||||
|
||||
@pytest.fixture(scope='class')
|
||||
|
||||
Reference in New Issue
Block a user