From 0d459cdcbd6957d9eaef790e605f8af767d483e5 Mon Sep 17 00:00:00 2001 From: Victor Wagner Date: Sat, 20 Dec 2014 15:55:09 +0300 Subject: [PATCH] Fix fallback timezone definition This fallback is used only when pytz is not installed, so it haven't been tested yet --- ctypescrypto/x509.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctypescrypto/x509.py b/ctypescrypto/x509.py index af61942..44919f1 100644 --- a/ctypescrypto/x509.py +++ b/ctypescrypto/x509.py @@ -18,9 +18,9 @@ from datetime import datetime try: from pytz import utc except ImportError: - from datetime import timedelta + from datetime import timedelta,tzinfo ZERO=timedelta(0) - class UTC(datetime.tzinfo): + class UTC(tzinfo): """tzinfo object for UTC. If no pytz is available, we would use it. """ -- 2.39.5