summaryrefslogtreecommitdiffstats
path: root/Tools/parser
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-09-09 07:38:50 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-09-09 07:38:50 (GMT)
commite13370b3e38c0714d3093d1235c6077bc6f62296 (patch)
tree464dd0788b716c42063a0856a37e4a08d51b4b59 /Tools/parser
parent87672d777a07f332d1d1373d47b78d3cda3334ac (diff)
downloadcpython-e13370b3e38c0714d3093d1235c6077bc6f62296.zip
cpython-e13370b3e38c0714d3093d1235c6077bc6f62296.tar.gz
cpython-e13370b3e38c0714d3093d1235c6077bc6f62296.tar.bz2
Issue #27364: Raw strings to avoid deprecated escaping in com2ann.py
Diffstat (limited to 'Tools/parser')
-rw-r--r--Tools/parser/com2ann.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/parser/com2ann.py b/Tools/parser/com2ann.py
index 1f46e73..b5868f4 100644
--- a/Tools/parser/com2ann.py
+++ b/Tools/parser/com2ann.py
@@ -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: