[GRASS-SVN] r70021 - grass/branches/releasebranch_7_2/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Dec 6 14:18:35 PST 2016
Author: martinl
Date: 2016-12-06 14:18:35 -0800 (Tue, 06 Dec 2016)
New Revision: 70021
Modified:
grass/branches/releasebranch_7_2/lib/init/grass7.html
Log:
update --exec python example to use print() syntax (merge r70020 from trunk)
Modified: grass/branches/releasebranch_7_2/lib/init/grass7.html
===================================================================
--- grass/branches/releasebranch_7_2/lib/init/grass7.html 2016-12-06 22:16:03 UTC (rev 70020)
+++ grass/branches/releasebranch_7_2/lib/init/grass7.html 2016-12-06 22:18:35 UTC (rev 70021)
@@ -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