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 <rep...@bugs.python.org> <http://bugs.python.org/issue27952> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com