[GRASS-SVN] r58626 - grass/trunk/lib/python/pygrass/vector
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 6 09:50:27 PST 2014
Author: zarch
Date: 2014-01-06 09:50:26 -0800 (Mon, 06 Jan 2014)
New Revision: 58626
Modified:
grass/trunk/lib/python/pygrass/vector/basic.py
Log:
Fix the __repr__method of the Ilist class
Modified: grass/trunk/lib/python/pygrass/vector/basic.py
===================================================================
--- grass/trunk/lib/python/pygrass/vector/basic.py 2014-01-06 17:46:36 UTC (rev 58625)
+++ grass/trunk/lib/python/pygrass/vector/basic.py 2014-01-06 17:50:26 UTC (rev 58626)
@@ -319,7 +319,7 @@
return (self.c_ilist.contents.value[i] for i in xrange(self.__len__()))
def __repr__(self):
- return "Ilist(%r)" % repr(self.__iter__())
+ return "Ilist(%r)" % [i for i in self.__iter__()]
def __contains__(self, item):
return item in self.__iter__()
More information about the grass-commit
mailing list