It seems using invalid escape sequences in string literals has been deprecated since Python 3.6, following which it would generate a DeprecationWarning, and deprecation warnings may not be displayed by default.
With Python 3.12 this use of invalid escape sequences was upgraded to a SyntaxWarning, which is displayed by default.
Aside from making the running of offlineimap "noisy", this change would not matter except for claims that the use of invalid escape sequences in string literals is planned to eventually become a hard SyntaxError.
Running
offlineimap
recently began showing the following warnings:The corresponding lines from
imaplib2.py
are2472:
2577:
2591:
2594:
It seems using invalid escape sequences in string literals has been deprecated since Python 3.6, following which it would generate a
DeprecationWarning
, and deprecation warnings may not be displayed by default.With Python 3.12 this use of invalid escape sequences was upgraded to a
SyntaxWarning
, which is displayed by default.Aside from making the running of
offlineimap
"noisy", this change would not matter except for claims that the use of invalid escape sequences in string literals is planned to eventually become a hardSyntaxError
.