[GRASS-SVN] r54595 - grass/trunk/lib/python/pygrass/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jan 11 08:38:40 PST 2013
Author: zarch
Date: 2013-01-11 08:38:40 -0800 (Fri, 11 Jan 2013)
New Revision: 54595
Modified:
grass/trunk/lib/python/pygrass/gis/__init__.py
Log:
Add doctest with glist and pattern
Modified: grass/trunk/lib/python/pygrass/gis/__init__.py
===================================================================
--- grass/trunk/lib/python/pygrass/gis/__init__.py 2013-01-11 16:38:31 UTC (rev 54594)
+++ grass/trunk/lib/python/pygrass/gis/__init__.py 2013-01-11 16:38:40 UTC (rev 54595)
@@ -262,6 +262,8 @@
>>> rast.sort()
>>> rast # doctest: +ELLIPSIS
['basins', 'elevation', ...]
+ >>> mapset.glist('rast', pattern='el*')
+ ['elevation_shade', 'elevation']
"""
if type not in ETYPE:
str_err = "Type %s is not valid, valid types are: %s."
More information about the grass-commit
mailing list