[GRASS-SVN] r73443 - grass/branches/releasebranch_7_6/lib/python/temporal

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Sep 27 14:00:37 PDT 2018


Author: lucadelu
Date: 2018-09-27 14:00:37 -0700 (Thu, 27 Sep 2018)
New Revision: 73443

Modified:
   grass/branches/releasebranch_7_6/lib/python/temporal/base.py
   grass/branches/releasebranch_7_6/lib/python/temporal/temporal_extent.py
Log:
temporal library: eval support for t.info, see #3264 (backport r73442)

Modified: grass/branches/releasebranch_7_6/lib/python/temporal/base.py
===================================================================
--- grass/branches/releasebranch_7_6/lib/python/temporal/base.py	2018-09-27 20:56:02 UTC (rev 73442)
+++ grass/branches/releasebranch_7_6/lib/python/temporal/base.py	2018-09-27 21:00:37 UTC (rev 73443)
@@ -786,7 +786,7 @@
             print("layer=" + str(self.get_layer()))
         print("creator=" + str(self.get_creator()))
         print("temporal_type=" + str(self.get_ttype()))
-        print("creation_time=" + str(self.get_ctime()))
+        print("creation_time='{}'".format(str(self.get_ctime())))
 
 ###############################################################################
 
@@ -920,7 +920,7 @@
     def print_shell_info(self):
         """Print information about this class in shell style"""
         DatasetBase.print_shell_info(self)
-        print("modification_time=" + str(self.get_mtime()))
+        print("modification_time='{}'".format(str(self.get_mtime())))
         print("semantic_type=" + str(self.get_semantic_type()))
 
 ###############################################################################

Modified: grass/branches/releasebranch_7_6/lib/python/temporal/temporal_extent.py
===================================================================
--- grass/branches/releasebranch_7_6/lib/python/temporal/temporal_extent.py	2018-09-27 20:56:02 UTC (rev 73442)
+++ grass/branches/releasebranch_7_6/lib/python/temporal/temporal_extent.py	2018-09-27 21:00:37 UTC (rev 73443)
@@ -1038,8 +1038,8 @@
 
     def print_shell_info(self):
         """Print information about this class in shell style"""
-        print("start_time=" + str(self.get_start_time()))
-        print("end_time=" + str(self.get_end_time()))
+        print("start_time='{}'".format(str(self.get_start_time())))
+        print("end_time='{}'".format(str(self.get_end_time())))
 
 ###############################################################################
 
@@ -1188,7 +1188,7 @@
     def print_shell_info(self):
         """Print information about this class in shell style"""
         AbsoluteTemporalExtent.print_shell_info(self)
-        print("granularity=" + str(self.get_granularity()))
+        print("granularity='{}'".format(str(self.get_granularity())))
         print("map_time=" + str(self.get_map_time()))
 
 ###############################################################################



More information about the grass-commit mailing list