changeset: 103396:98a57845c8cc user: Martin Panter date: Fri Sep 09 07:38:50 2016 +0000 files: Tools/parser/com2ann.py description: Issue #27364: Raw strings to avoid deprecated escaping in com2ann.py diff -r 910e293663cb -r 98a57845c8cc Tools/parser/com2ann.py --- a/Tools/parser/com2ann.py Fri Sep 09 00:05:42 2016 -0700 +++ b/Tools/parser/com2ann.py Fri Sep 09 07:38:50 2016 +0000 @@ -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: