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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 17 15:13:35 PDT 2019


Author: sbl
Date: 2019-03-17 15:13:35 -0700 (Sun, 17 Mar 2019)
New Revision: 74286

Modified:
   grass/trunk/lib/python/temporal/datetime_math.py
Log:
make string_to_datetime accept unicode

Modified: grass/trunk/lib/python/temporal/datetime_math.py
===================================================================
--- grass/trunk/lib/python/temporal/datetime_math.py	2019-03-17 22:11:51 UTC (rev 74285)
+++ grass/trunk/lib/python/temporal/datetime_math.py	2019-03-17 22:13:35 UTC (rev 74286)
@@ -830,7 +830,7 @@
                  could not be converted
     """
 
-    if not isinstance(time_string, str):
+    if not isinstance(time_string, unicode) and not isinstance(time_string, str):
         return None
 
     time_object = check_datetime_string(time_string)



More information about the grass-commit mailing list