Sfoglia il codice sorgente

Fix the __repr__method of the Ilist class

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58626 15284696-431f-4ddb-bdfa-cd5b030d7da7
Pietro Zambelli 11 anni fa
parent
commit
0aac5c1909
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/python/pygrass/vector/basic.py

+ 1 - 1
lib/python/pygrass/vector/basic.py

@@ -319,7 +319,7 @@ class Ilist(object):
         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__()