From: Victor Wagner Date: Sat, 20 Dec 2014 12:55:09 +0000 (+0300) Subject: Fix fallback timezone definition X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=0d459cdcbd6957d9eaef790e605f8af767d483e5;p=oss%2Fctypescrypto.git Fix fallback timezone definition This fallback is used only when pytz is not installed, so it haven't been tested yet --- 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. """