Skip to content

Commit b2fa579

Browse files
committed
Corrects the following error:
.7/site-packages/mpl_toolkits/basemap/__init__.py", line 4358, in wmsimage return self.imshow(imread(io.BytesIO(urllib2.urlopen(img.url).read()), AttributeError: 'ResponseWrapper' object has no attribute 'url' It might have something to do with an owslib update
1 parent 89508c8 commit b2fa579

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mpl_toolkits/basemap/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4409,7 +4409,7 @@ def wmsimage(self,server,\
44094409
srs='EPSG:%s' % self.epsg, **kwargs)
44104410
# return AxesImage instance.
44114411
# this works for png and jpeg.
4412-
return self.imshow(imread(io.BytesIO(urllib2.urlopen(img.url).read()),
4412+
return self.imshow(imread(io.BytesIO(img.read()),
44134413
format=format),origin='upper')
44144414
# this works for png, but not jpeg
44154415
#return self.imshow(imread(urllib2.urlopen(img.url),format=format),origin='upper')

0 commit comments

Comments
 (0)