[GRASS-SVN] r74358 - grass/trunk/lib/python/temporal
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Apr 9 02:07:30 PDT 2019
Author: sbl
Date: 2019-04-09 02:07:30 -0700 (Tue, 09 Apr 2019)
New Revision: 74358
Modified:
grass/trunk/lib/python/temporal/datetime_math.py
grass/trunk/lib/python/temporal/temporal_algebra.py
Log:
fix python version check
Modified: grass/trunk/lib/python/temporal/datetime_math.py
===================================================================
--- grass/trunk/lib/python/temporal/datetime_math.py 2019-04-08 19:50:21 UTC (rev 74357)
+++ grass/trunk/lib/python/temporal/datetime_math.py 2019-04-09 09:07:30 UTC (rev 74358)
@@ -19,7 +19,7 @@
except:
has_dateutil = False
-if sys.version_info[0]:
+if sys.version_info[0] == 3:
unicode = str
DAY_IN_SECONDS = 86400
Modified: grass/trunk/lib/python/temporal/temporal_algebra.py
===================================================================
--- grass/trunk/lib/python/temporal/temporal_algebra.py 2019-04-08 19:50:21 UTC (rev 74357)
+++ grass/trunk/lib/python/temporal/temporal_algebra.py 2019-04-09 09:07:30 UTC (rev 74358)
@@ -470,7 +470,7 @@
from .datetime_math import create_time_suffix
from .datetime_math import create_numeric_suffix
-if sys.version_info[0]:
+if sys.version_info[0] == 3:
unicode = str
##############################################################################
More information about the grass-commit
mailing list