File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- from datetime import datetime , timedelta
1+ from datetime import datetime , timedelta , timezone
22from typing import Any , Callable , Dict , Optional
33
44from requests import Session
@@ -99,7 +99,7 @@ def make_request(
9999 if method not in {Method .GET , Method .DELETE } and payload is None :
100100 raise ValueError (f"Improper payload for { method } " )
101101
102- if datetime .utcnow ( ) >= self .expiry :
102+ if datetime .now ( tz = timezone . utc ) >= self .expiry . replace ( tzinfo = timezone . utc ) :
103103 self .update_token ()
104104
105105 uri_path = f"{ environment .request_url } { uri_path } "
Original file line number Diff line number Diff line change 77with codecs .open (os .path .join (here , "README.md" ), encoding = "utf-8" ) as fh :
88 long_description = "\n " + fh .read ()
99
10- VERSION = "1.0.14 "
10+ VERSION = "1.0.15 "
1111DESCRIPTION = "Etsy API Client Library for Python"
1212
1313# Setting up
You can’t perform that action at this time.
0 commit comments