فهرست منبع

v.rast.stats: replace xrange with range for python 3 compatibility

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@74088 15284696-431f-4ddb-bdfa-cd5b030d7da7
Moritz Lennert 6 سال پیش
والد
کامیت
969f91ea66
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      scripts/v.rast.stats/v.rast.stats.py

+ 1 - 1
scripts/v.rast.stats/v.rast.stats.py

@@ -214,7 +214,7 @@ def main():
     # replaced by user choiche
     #basecols = ['n', 'min', 'max', 'range', 'mean', 'stddev', 'variance', 'cf_var', 'sum']
 
-    for i in xrange(len(rasters)):
+    for i in range(len(rasters)):
         raster = rasters[i]
         colprefix = colprefixes[i]
         # we need at least three chars to distinguish [mea]n from [med]ian