[GRASS-SVN] r70151 - grass/branches/releasebranch_7_2/lib/python/pygrass/modules/interface
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Dec 28 02:10:51 PST 2016
Author: neteler
Date: 2016-12-28 02:10:51 -0800 (Wed, 28 Dec 2016)
New Revision: 70151
Modified:
grass/branches/releasebranch_7_2/lib/python/pygrass/modules/interface/module.py
Log:
module.py manual: fix example formatting (https://grass.osgeo.org/grass72/manuals/libpython/pygrass.modules.interface.html)
Modified: grass/branches/releasebranch_7_2/lib/python/pygrass/modules/interface/module.py
===================================================================
--- grass/branches/releasebranch_7_2/lib/python/pygrass/modules/interface/module.py 2016-12-28 10:07:24 UTC (rev 70150)
+++ grass/branches/releasebranch_7_2/lib/python/pygrass/modules/interface/module.py 2016-12-28 10:10:51 UTC (rev 70151)
@@ -359,6 +359,7 @@
"Color table for raster map <test_a> set to 'rules'"
Run a second time
+
>>> colors.run()
Module('r.colors')
>>> stdout, stderr = colors.popen.communicate(input="1 blue")
@@ -369,6 +370,7 @@
"Color table for raster map <test_a> set to 'rules'"
Multiple run test
+
>>> colors = Module("r.colors", map="test_a",
... color="ryb", run_=False)
>>> colors.get_bash()
More information about the grass-commit
mailing list