You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the heads up. What's the recommended replacement that works in Python 3.7 - 3.12? I know from the Discourse thread that .now(datetime.UTC) is the recommended replacement, but that's only valid in 3.11+. As far as I can see, the backward compatible approach would be .now(timezone(timedelta(0))). Is that correct? It feels a bit verbose and non-obvious (nothing that a well-placed comment can't fix, of course!)
I've created #12007 to see if the fix here is as simple as I hope it is :-)
The cachecontrol problem will need to be raised with them, and we'll pick up the fix when they release one. I raised psf/cachecontrol#291 to flag it with them.
Description
There are two places in
pip
's codebase that usedatetime.utcnow
, plus one additional place incachecontrol
.This will start raising deprecation warnings in 3.12.
The text was updated successfully, but these errors were encountered: