mirror of https://github.com/python/cpython
Issue #27364: Raw strings to avoid deprecated escaping in com2ann.py
This commit is contained in:
parent
87672d777a
commit
e13370b3e3
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue