[GRASS-SVN] r54647 - grass/trunk/lib/python/pygrass/modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 15 08:11:55 PST 2013
Author: zarch
Date: 2013-01-15 08:11:54 -0800 (Tue, 15 Jan 2013)
New Revision: 54647
Modified:
grass/trunk/lib/python/pygrass/modules/__init__.py
Log:
Fix parameter with values that not raise a TypeError
Modified: grass/trunk/lib/python/pygrass/modules/__init__.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/__init__.py 2013-01-15 15:13:13 UTC (rev 54646)
+++ grass/trunk/lib/python/pygrass/modules/__init__.py 2013-01-15 16:11:54 UTC (rev 54647)
@@ -159,7 +159,10 @@
if isrange:
range_min, range_max = isrange.groups()
self.values = range(int(range_min), int(range_max) + 1)
- self.isrange = diz['values'][0]
+ self.isrange = diz['values'][0]
+ else:
+ self.values = [self._type(i) for i in diz['values']]
+ self.isrange = False
except TypeError:
self.values = [self._type(i) for i in diz['values']]
self.isrange = False
More information about the grass-commit
mailing list