Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e13370b

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)