diff options
author | Laurent Mazuel <laurent.mazuel@gmail.com> | 2017-06-28 18:28:24 -0700 |
---|---|---|
committer | Laurent Mazuel <laurent.mazuel@gmail.com> | 2017-06-28 18:28:24 -0700 |
commit | ad4e50bd7cdb697606148d434e803fdf7f647f8d (patch) | |
tree | a837912455122800ed51323cc813338d134b7579 /src/isodate/isotime.py | |
parent | 3aaf2547850c5e015c88e475364ac77f7fd6a92f (diff) | |
download | isodate-ad4e50bd7cdb697606148d434e803fdf7f647f8d.tar.gz |
Adapt after 2to3 removal
Diffstat (limited to 'src/isodate/isotime.py')
-rw-r--r-- | src/isodate/isotime.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/isodate/isotime.py b/src/isodate/isotime.py index 9650cda..c6d9391 100644 --- a/src/isodate/isotime.py +++ b/src/isodate/isotime.py @@ -32,9 +32,13 @@ It supports all basic and extended formats including time zone specifications as described in the ISO standard. ''' import re +import sys from decimal import Decimal from datetime import time +if sys.version_info > (3,): + long = int + from isodate.isostrf import strftime, TIME_EXT_COMPLETE, TZ_EXT from isodate.isoerror import ISO8601Error from isodate.isotzinfo import TZ_REGEX, build_tzinfo |