[GRASS-SVN] r61213 - grass/trunk/lib/python/pygrass/modules/interface
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jul 9 03:32:38 PDT 2014
Author: zarch
Date: 2014-07-09 03:32:38 -0700 (Wed, 09 Jul 2014)
New Revision: 61213
Modified:
grass/trunk/lib/python/pygrass/modules/interface/parameter.py
Log:
pygrass: Avoid conversion if default parameter is an empty string
Modified: grass/trunk/lib/python/pygrass/modules/interface/parameter.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/interface/parameter.py 2014-07-09 10:29:49 UTC (rev 61212)
+++ grass/trunk/lib/python/pygrass/modules/interface/parameter.py 2014-07-09 10:32:38 UTC (rev 61213)
@@ -156,7 +156,7 @@
#
# default
#
- if 'default' in diz:
+ if 'default' in diz and diz['default']:
if self.multiple or self.keydescvalues:
self.default = [self.type(v)
for v in diz['default'].split(',')]
More information about the grass-commit
mailing list