[GRASS-SVN] r73445 - grass/branches/releasebranch_7_2/lib/python/temporal

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Sep 27 14:07:04 PDT 2018


Author: lucadelu
Date: 2018-09-27 14:07:04 -0700 (Thu, 27 Sep 2018)
New Revision: 73445

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

Modified: grass/branches/releasebranch_7_2/lib/python/temporal/base.py
===================================================================
--- grass/branches/releasebranch_7_2/lib/python/temporal/base.py	2018-09-27 21:06:09 UTC (rev 73444)
+++ grass/branches/releasebranch_7_2/lib/python/temporal/base.py	2018-09-27 21:07:04 UTC (rev 73445)
@@ -785,7 +785,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())))
 
 ###############################################################################
 
@@ -919,7 +919,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_2/lib/python/temporal/temporal_extent.py
===================================================================
--- grass/branches/releasebranch_7_2/lib/python/temporal/temporal_extent.py	2018-09-27 21:06:09 UTC (rev 73444)
+++ grass/branches/releasebranch_7_2/lib/python/temporal/temporal_extent.py	2018-09-27 21:07:04 UTC (rev 73445)
@@ -1034,8 +1034,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())))
 
 ###############################################################################
 
@@ -1184,7 +1184,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