[GRASS-SVN] r72805 - grass-addons/grass7/raster/r.lfp

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jun 12 07:05:49 PDT 2018


Author: hcho
Date: 2018-06-12 07:05:49 -0700 (Tue, 12 Jun 2018)
New Revision: 72805

Modified:
   grass-addons/grass7/raster/r.lfp/r.lfp.py
Log:
r.lfp: Remove a one-time use variable

Modified: grass-addons/grass7/raster/r.lfp/r.lfp.py
===================================================================
--- grass-addons/grass7/raster/r.lfp/r.lfp.py	2018-06-12 12:38:02 UTC (rev 72804)
+++ grass-addons/grass7/raster/r.lfp/r.lfp.py	2018-06-12 14:05:49 UTC (rev 72805)
@@ -91,8 +91,7 @@
         if p.returncode != 0:
             grass.fatal(_("Cannot read outlet points"))
 
-    n = len(coords) / 2
-    for i in range(0, n):
+    for i in range(0, len(coords) / 2):
         coor = "%s,%s" % (coords[2*i], coords[2*i+1])
         grass.message(_("Processing the outlet at %s..." % coor))
 



More information about the grass-commit mailing list