Skip to content

Commit e13370b

Browse files
committed
Issue python#27364: Raw strings to avoid deprecated escaping in com2ann.py
1 parent 87672d7 commit e13370b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tools/parser/com2ann.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
__all__ = ['com2ann', 'TYPE_COM']
1212

13-
TYPE_COM = re.compile('\s*#\s*type\s*:.*$', flags=re.DOTALL)
14-
TRAIL_OR_COM = re.compile('\s*$|\s*#.*$', flags=re.DOTALL)
13+
TYPE_COM = re.compile(r'\s*#\s*type\s*:.*$', flags=re.DOTALL)
14+
TRAIL_OR_COM = re.compile(r'\s*$|\s*#.*$', flags=re.DOTALL)
1515

1616

1717
class _Data:

0 commit comments

Comments
 (0)