Skip to content

Commit 0079438

Browse files
authored
Merge pull request #459 from WeatherGod/shapefile_enc
pyshp changed the Reader constructor. Closes #449.
2 parents b1725d0 + 00149f2 commit 0079438

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
@@ -2130,7 +2130,7 @@ def readshapefile(self,shapefile,name,drawbounds=True,zorder=None,
21302130
# open shapefile, read vertices for each object, convert
21312131
# to map projection coordinates (only works for 2D shape types).
21322132
try:
2133-
shf = Reader(shapefile)
2133+
shf = Reader(shapefile, encoding=default_encoding)
21342134
except:
21352135
raise IOError('error reading shapefile %s.shp' % shapefile)
21362136
fields = shf.fields

0 commit comments

Comments
 (0)