Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork56.4k
Fix regex escape warning in _coverage.py by using raw string#28195
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:4.x
Are you sure you want to change the base?
Conversation
harsh-suman5 commentedDec 16, 2025
Hello opencv admins, I saw that some of the buildbot checks are throwing “exception” and the dashboard says the service is in a degraded state. |
harsh-suman5 commentedDec 16, 2025
Hi, all core CI checks have passed successfully (23/26). |
while i am running '_coverage.py' I noticed there is a syntax warning:"." It is an invalid escape sequence
The regex was written as a normal string with '.' which is not valid escape in string literals and give problems and error in a new python versions.
To fix this switch to raw string(r'cv2?.\w+') which can passes the backslashes directly to the regex engine. This removes the warning and keeps the code and pattern working properly.
This is a small fix but important for future compatibilities.