Skip to content

Fix re expression SyntaxWarning in cache.py

Changes:

Fix re expression `SyntaxWarning` in `cache.py`

The regular expression in lib/python/mod_python/cache.py contains invalid escape sequences. The escape character (\ aka backslash) of regular expressions collides with the escape character (also \ aka backslash) of Python string literals.

Since Python 3.12 any invalid escape sequences in Python's usage of the backslash in string literals now generate a SyntaxWarning and in the future this will become a SyntaxError. Previous Python versions also noted similar future deprecation warnings.

See https://docs.python.org/3.12/library/re.html for more details.

Copy apache2 logs and config to the `AUTOPKGTEST_ARTIFACTS` directory. These files contain additional information that may be helpful to diagnose potential future failures.

Note: the fix is already applied upstream

Merge request reports

Loading