[GRASS-SVN] r65016 - grass/branches/releasebranch_7_0/lib/python/docs/src

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Apr 7 05:13:27 PDT 2015


Author: martinl
Date: 2015-04-07 05:13:27 -0700 (Tue, 07 Apr 2015)
New Revision: 65016

Modified:
   grass/branches/releasebranch_7_0/lib/python/docs/src/pygrass_modules.rst
Log:
Update documentation, thanks to Martin (by zarch)
       (merge r65015 from trunk)


Modified: grass/branches/releasebranch_7_0/lib/python/docs/src/pygrass_modules.rst
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/docs/src/pygrass_modules.rst	2015-04-07 12:08:36 UTC (rev 65015)
+++ grass/branches/releasebranch_7_0/lib/python/docs/src/pygrass_modules.rst	2015-04-07 12:13:27 UTC (rev 65016)
@@ -195,9 +195,9 @@
 
 Another example of use: ::
 
-    >>> info = Module("r.info", map="elevation", flags="r", finish_=True)
-    >>> from pygrass.modules import stdout2dict
-    >>> stdout2dict(info.stdout)
+    >>> info = Module("r.info", map="elevation", flags="r", stdout_=PIPE)
+    >>> from grass.script.utils import parse_key_val
+    >>> parse_key_val(info.outputs.stdout)
     {'max': '156.3299', 'min': '55.57879'}
     >>> info = Module("r.info", map="elevation", flags="r", finish_=False)
     >>> category = Module("r.category", map="elevation",



More information about the grass-commit mailing list