mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #27364: Raw strings to avoid deprecated escaping in com2ann.py
This commit is contained in:
parent
87672d777a
commit
e13370b3e3
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue