Skip to content

Commit d4eae27

Browse files
committed
Apply basic Flake8 corrections to Basemap.arcgisimage method
1 parent d5ba71f commit d4eae27

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

packages/basemap/src/mpl_toolkits/basemap/__init__.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4330,17 +4330,17 @@ def arcgisimage(self, server="http://server.arcgisonline.com/ArcGIS",
43304330
ypixels = int(self.aspect * xpixels)
43314331

43324332
# Construct a URL using the ArcGIS Server REST API.
4333-
basemap_url = \
4334-
"%s/rest/services/%s/MapServer/export?\
4335-
bbox=%s,%s,%s,%s&\
4336-
bboxSR=%s&\
4337-
imageSR=%s&\
4338-
size=%s,%s&\
4339-
dpi=%s&\
4340-
format=png32&\
4341-
transparent=true&\
4342-
f=image" %\
4343-
(server, service, xmin, ymin, xmax, ymax, self.epsg, self.epsg, xpixels, ypixels, dpi)
4333+
basemap_url = "".join([
4334+
"%s/rest/services/%s/MapServer/export?",
4335+
"bbox=%s,%s,%s,%s&",
4336+
"bboxSR=%s&",
4337+
"imageSR=%s&",
4338+
"size=%s,%s&",
4339+
"dpi=%s&",
4340+
"format=png32&",
4341+
"transparent=true&",
4342+
"f=image",
4343+
]) % (server, service, xmin, ymin, xmax, ymax, self.epsg, self.epsg, xpixels, ypixels, dpi)
43444344

43454345
# Print URL in verbose mode.
43464346
if verbose:
@@ -4349,8 +4349,8 @@ def arcgisimage(self, server="http://server.arcgisonline.com/ArcGIS",
43494349
if cachedir is not None:
43504350

43514351
# Generate a filename for the cached file.
4352-
filename = "%s-bbox-%s-%s-%s-%s-bboxsr%s-imagesr%s-size-%s-%s-dpi%s.png" %\
4353-
(service, xmin, ymin, xmax, ymax, self.epsg, self.epsg, xpixels, ypixels, dpi)
4352+
filename = "%s-bbox-%s-%s-%s-%s-bboxsr%s-imagesr%s-size-%s-%s-dpi%s.png" % \
4353+
(service, xmin, ymin, xmax, ymax, self.epsg, self.epsg, xpixels, ypixels, dpi)
43544354

43554355
# Check if the cache directory exists, if not create it.
43564356
if not os.path.exists(cachedir):

0 commit comments

Comments
 (0)