-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Finish converting fixcid.py from regex to re #72139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Tools/scripts/fixcid.py initially used old regex module. In 4727f260f6f8 it was converted to using new re module, but not all generated regular expressions were converted to new syntax. The script is not working since that time. |
It would be nice to fix this so that the tests pass with -Werror. Here is a quick patch:
Documentation for the old “regex” module: |
Thanks Martin. The patch in general LGTM, but see comments on Rietveld. |
New patch with more fixes and test cases. Also dropped some of the less useful raw string changes. |
New changeset 740e43eb8138 by Martin Panter in branch '2.7': New changeset ca68bb597df9 by Martin Panter in branch '3.5': New changeset 8dde3dcab1e8 by Martin Panter in branch 'default': |
Can we silence the debug output? ./python -m test test_tools Total duration: 4 sec |
New changeset 5ae3782c4e05 by Berker Peksag in branch '3.5': New changeset 33d118a27035 by Berker Peksag in branch '3.6': New changeset 6acd2b575a3c by Berker Peksag in branch 'default': |
Done. I'm going to pretend 2.7 doesn't exist :) |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: