HubSpot / hubspot-api-python

HubSpot API Python Client Libraries for V3 version of the API
Apache License 2.0
338 stars 108 forks source link

hubspot.utils.signature is broken for python < 3.11 #361

Open jekru opened 1 week ago

jekru commented 1 week ago
import base64
import hmac
import hashlib

from datetime import datetime, UTC, timedelta # <--- datetime.UTC is not available for python < 3.11

hubspot/utils/signature.py


Possible solution: Use timezone.utc.

alzheltkovskiy-hubspot commented 2 days ago

Hey @jekru. Thank you for your participation. We will try to fix it in the next version.