Describe the bug
The latest version of Python, 3.12, introduced a few breakages in Chromium scripts. This is the corresponding ticket in Chromium: https://issues.chromium.org/issues/40283283
There are a few scripts in CEF that are affected by this situation. Fortunately, these aren't breaking changes, they are still reported as warnings. It would be good to address them, anyway, to prevent problems in the future.
In particular, there are a number of SyntaxWarning messages now, caused by the use of unescaped backslashes in strings. These are abundant in regular expressions; the recommendation from Python docs is to use raw strings "for all but the simplest expressions".
To Reproduce
Build CEF on a system with Python 3.12 running by default. A number of warning messages will appear:
Describe the bug The latest version of Python, 3.12, introduced a few breakages in Chromium scripts. This is the corresponding ticket in Chromium: https://issues.chromium.org/issues/40283283
There are a few scripts in CEF that are affected by this situation. Fortunately, these aren't breaking changes, they are still reported as warnings. It would be good to address them, anyway, to prevent problems in the future.
In particular, there are a number of
SyntaxWarning
messages now, caused by the use of unescaped backslashes in strings. These are abundant in regular expressions; the recommendation from Python docs is to use raw strings "for all but the simplest expressions".To Reproduce Build CEF on a system with Python 3.12 running by default. A number of warning messages will appear:
Expected behavior No warnings reported during the build process.
Versions: