Open exploide opened 5 months ago
Thanks for the PR with changes. Although we are not currently supporting officially 3.12, we will do it in the short term. This PR will be taken into account by then.
Great. Pushed another commit, because datetime.datetime.utcfromtimestamp()
is deprecated likewise.
Python 3.12 is a bit more strict when it comes to backslashes in strings. If it isn't an actual escape sequence like
\n
then it should be either a raw string or the backslash should be escaped. Fixed a bunch ofSyntaxWarning: invalid escape sequence
inreg.py
.The function
datetime.datetime.utcnow()
has been deprecated, because timezone aware datetime objects should better be used instead. Replaced a lot of occurences ofdatetime.datetime.utcnow()
in the codebase since this was spittingDeprecationWarning: datetime.datetime.utcnow() is deprecated
everywhere.