[issue27952] Finish converting fixcid.py from regex to re

Martin Panter report at bugs.python.org
Fri Sep 9 06:06:34 EDT 2016


Martin Panter added the comment:

It would be nice to fix this so that the tests pass with -Werror. Here is a quick patch:

* Fix the deprecated non-escapes
* Make all the regular expressions raw strings
* Fix bugs with parsing escaped quotes in C strings and char literals
* Adapt from old regex module and Python 2 print statements
* Add a new test file with a single test case (could easily be expanded)

Documentation for the old “regex” module:
https://docs.python.org/release/1.6/lib/module-regex.html

----------
keywords: +patch
stage: needs patch -> patch review
Added file: http://bugs.python.org/file44496/fixcid-re.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27952>
_______________________________________


More information about the Python-bugs-list mailing list