Skip to content

Commit 8872dbc

Browse files
committed
Merge pull request #259 from pick2510/master
Corrects the following error:
2 parents f6d6107 + b2fa579 commit 8872dbc

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
@@ -4432,7 +4432,7 @@ def wmsimage(self,server,\
44324432
srs='EPSG:%s' % self.epsg, **kwargs)
44334433
# return AxesImage instance.
44344434
# this works for png and jpeg.
4435-
return self.imshow(imread(io.BytesIO(urllib2.urlopen(img.url).read()),
4435+
return self.imshow(imread(io.BytesIO(img.read()),
44364436
format=format),origin='upper')
44374437
# this works for png, but not jpeg
44384438
#return self.imshow(imread(urllib2.urlopen(img.url),format=format),origin='upper')

0 commit comments

Comments
 (0)