[Python-checkins] cpython: Issue #27364: Raw strings to avoid deprecated escaping in com2ann.py

martin.panter python-checkins at python.org
Fri Sep 9 05:55:40 EDT 2016


https://hg.python.org/cpython/rev/98a57845c8cc
changeset:   103396:98a57845c8cc
user:        Martin Panter <vadmium+py at gmail.com>
date:        Fri Sep 09 07:38:50 2016 +0000
summary:
  Issue #27364: Raw strings to avoid deprecated escaping in com2ann.py

files:
  Tools/parser/com2ann.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Tools/parser/com2ann.py b/Tools/parser/com2ann.py
--- a/Tools/parser/com2ann.py
+++ b/Tools/parser/com2ann.py
@@ -10,8 +10,8 @@
 
 __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:

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list