[GRASS-SVN] r70020 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 6 14:16:03 PST 2016


Author: martinl
Date: 2016-12-06 14:16:03 -0800 (Tue, 06 Dec 2016)
New Revision: 70020

Modified:
   grass/trunk/lib/init/grass7.html
Log:
update --exec python example to use print() syntax

Modified: grass/trunk/lib/init/grass7.html
===================================================================
--- grass/trunk/lib/init/grass7.html	2016-12-06 22:15:58 UTC (rev 70019)
+++ grass/trunk/lib/init/grass7.html	2016-12-06 22:16:03 UTC (rev 70020)
@@ -349,15 +349,15 @@
 import grass.script.setup as gsetup
 
 gscript.message('Current GRASS GIS 7 environment:')
-print gscript.gisenv()
+print (gscript.gisenv())
  
 gscript.message('Available raster maps:')
 for raster in gscript.list_strings(type = 'raster'):
-    print raster
+    print (raster)
  
 gscript.message('Available vector maps:')
 for vector in gscript.list_strings(type = 'vector'):
-    print vector
+    print (vector)
 </pre></div>
 
 <h4>Troubleshooting</h4>



More information about the grass-commit mailing list