[GRASS-SVN] r74352 - grass/trunk/lib/python/temporal
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Apr 6 15:27:54 PDT 2019
Author: sbl
Date: 2019-04-06 15:27:54 -0700 (Sat, 06 Apr 2019)
New Revision: 74352
Modified:
grass/trunk/lib/python/temporal/temporal_algebra.py
Log:
define unicode for Py3
Modified: grass/trunk/lib/python/temporal/temporal_algebra.py
===================================================================
--- grass/trunk/lib/python/temporal/temporal_algebra.py 2019-04-06 21:17:36 UTC (rev 74351)
+++ grass/trunk/lib/python/temporal/temporal_algebra.py 2019-04-06 22:27:54 UTC (rev 74352)
@@ -447,6 +447,7 @@
pass
import os
+import sys
import copy
from datetime import datetime
import grass.pygrass.modules as pymod
@@ -469,6 +470,9 @@
from .datetime_math import create_time_suffix
from .datetime_math import create_numeric_suffix
+if sys.version_info[0]:
+ unicode = str
+
##############################################################################
class TemporalAlgebraLexer(object):
More information about the grass-commit
mailing list