Skip to content

Commit dc3bee7

Browse files
committed
More invalid escape sequence fixes.
1 parent 150e06f commit dc3bee7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

roundup/cgi/KeywordsExpr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This module is free software, you may redistribute it
22
# and/or modify under the same terms as Python.
33

4-
WINDOW_CONTENT = '''\
4+
WINDOW_CONTENT = r'''\
55
<h3>Keyword Expression Editor:</h3>
66
<hr/>
77
<div id="content"></div>

roundup/date.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ def set(self, spec, allowdate=1, interval_re=re.compile(r'''
808808
(\d\d\d\d[/-])?(\d\d?)?[/-](\d\d?)? # [yyyy-]mm-dd
809809
\.? # .
810810
(\d?\d:\d\d)?(:\d\d)? # hh:mm:ss
811-
)?''', re.VERBOSE), serialised_re=re.compile('''
811+
)?''', re.VERBOSE), serialised_re=re.compile(r'''
812812
(?P<s>[+-])?1?(?P<y>([ ]{3}\d|\d{4}))(?P<m>\d{2})(?P<d>\d{2})
813813
(?P<H>\d{2})(?P<M>\d{2})(?P<S>\d{2})''', re.VERBOSE),
814814
add_granularity=False):

roundup/token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def token_split(s, whitespace=' \r\n\t', quotes='\'"',
3030
"Roch'e" Compaan (2 tokens: Roch'e Compaan)
3131
Roch\'e Compaan (2 tokens: Roch'e Compaan)
3232
address="1 2 3" (1 token: address=1 2 3)
33-
\\ (1 token: \)
33+
\\ (1 token: \\)
3434
\n (1 token: a newline)
3535
\o (1 token: \o)
3636

test/test_templating.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def __repr__(self):
316316
def __getitem__(self, item):
317317
def __getattr__(self, attr):
318318
def designator(self):
319-
def getItem(self, itemid, num_re=re.compile('-?\d+')):
319+
def getItem(self, itemid, num_re=re.compile(r'-?\d+')):
320320
def properties(self, sort=1, cansearch=True):
321321
def list(self, sort_on=None):
322322
def csv(self):

0 commit comments

Comments
 (0)