Issue #27364: Raw strings to avoid deprecated escaping in com2ann.py

This commit is contained in:
Martin Panter 2016-09-09 07:38:50 +00:00
parent 87672d777a
commit e13370b3e3
1 changed files with 2 additions and 2 deletions

View File

@ -10,8 +10,8 @@ from io import BytesIO
__all__ = ['com2ann', 'TYPE_COM']
TYPE_COM = re.compile('\s*#\s*type\s*:.*$', flags=re.DOTALL)
TRAIL_OR_COM = re.compile('\s*$|\s*#.*$', flags=re.DOTALL)
TYPE_COM = re.compile(r'\s*#\s*type\s*:.*$', flags=re.DOTALL)
TRAIL_OR_COM = re.compile(r'\s*$|\s*#.*$', flags=re.DOTALL)
class _Data: