[GRASS-SVN] r74351 - grass/trunk/lib/python/temporal

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Apr 6 14:17:36 PDT 2019


Author: sbl
Date: 2019-04-06 14:17:36 -0700 (Sat, 06 Apr 2019)
New Revision: 74351

Modified:
   grass/trunk/lib/python/temporal/datetime_math.py
Log:
define unicode for Py3

Modified: grass/trunk/lib/python/temporal/datetime_math.py
===================================================================
--- grass/trunk/lib/python/temporal/datetime_math.py	2019-04-05 21:39:47 UTC (rev 74350)
+++ grass/trunk/lib/python/temporal/datetime_math.py	2019-04-06 21:17:36 UTC (rev 74351)
@@ -8,6 +8,7 @@
 
 :authors: Soeren Gebbert
 """
+import sys
 from datetime import datetime, timedelta
 from .core import get_tgis_message_interface
 import copy
@@ -18,6 +19,9 @@
 except:
     has_dateutil = False
 
+if sys.version_info[0]:
+    unicode = str
+
 DAY_IN_SECONDS = 86400
 SECOND_AS_DAY = 1.1574074074074073e-05
 



More information about the grass-commit mailing list