Address some warnings
Spotted in pytest output
datetime.utcnow()
Deprecated since version 3.12: Use datetime.now() with UTC instead.
[!NOTE] There is a risk with this because using comparison operators (e.g.
<) between timezone-aware and naive (timezone-unaware)datetimes results in a type error. However I do not think we are doing any such comparisons, and all the tests are passing.
sqlite3.connect():
Changed in version 3.13: Positional use of the parameters timeout, detect_types, isolation_level, check_same_thread, factory, cached_statements, and uri is deprecated. They will become keyword-only parameters in Python 3.15.
Check List
- [x] I have read
CONTRIBUTING.mdand added my name as a Code Contributor. - [x] Contains logically grouped changes (else tidy your branch by rebase).
- [x] Does not contain off-topic changes (use other PRs for other changes).
- [x] No dependency changes
- [x] No tests/docs/changelog needed
- [x] If this is a bug fix, PR should be raised against the relevant
?.?.xbranch.
@hjoliver, this PR removes a code block that isn't used any more. Can you have a quick look at it and merge if ok.
@hjoliver ping
(bumped to 8.5.0 as this is non-critical, bump back if merged in time)
Python 3.15 is out next year, hence I think this ought to go in soon (8.7.0 at the latest)