From fbcb9420397b081755bc39cc31f79d0fa0468481 Mon Sep 17 00:00:00 2001 From: Mike Taves Date: Tue, 6 Aug 2019 14:19:07 +1200 Subject: [PATCH] fix(export_contourf): tidy local variable overuse for Python 2.7 --- flopy/export/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flopy/export/utils.py b/flopy/export/utils.py index 86892e68d9..c3bc2af0ef 100644 --- a/flopy/export/utils.py +++ b/flopy/export/utils.py @@ -1162,7 +1162,7 @@ def export_contourf(filename, contours, fieldname='level', epsg=None, for c in contours: levels = c.levels - for i, col in enumerate(c.collections): + for idx, col in enumerate(c.collections): # Loop through all polygons that have the same intensity level for contour_path in col.get_paths(): # Create the polygon for this intensity level @@ -1181,7 +1181,7 @@ def export_contourf(filename, contours, fieldname='level', epsg=None, # store shapely geometry object shapelygeoms.append(poly) - level.append(levels[i]) + level.append(levels[idx]) geoms = [] for shpgeom in shapelygeoms: