Files
opencv/samples/python
HARSH SUMAN e3e87055bd Merge pull request #28195 from harsh-suman5:fix-coverage-regex
Fix regex escape warning in _coverage.py by using raw string #2819

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.
2025-12-18 14:52:20 +03:00
..
2023-06-23 22:19:08 +03:00
2022-01-24 11:13:56 +03:00
2019-12-27 12:46:53 +00:00
2022-01-24 11:13:56 +03:00
2019-11-01 18:59:35 +03:00
2022-01-24 11:13:56 +03:00
2021-07-01 18:26:17 +03:00
2020-02-20 16:19:24 +03:00
2021-07-01 18:26:17 +03:00
2025-04-25 15:39:50 +08:00
2021-06-30 12:50:21 +03:00
2021-06-30 12:50:21 +03:00
2024-09-14 23:36:57 +03:00
2021-06-30 12:50:21 +03:00
2019-12-30 13:00:29 +00:00