From 00149f24db2feccead5bbcfd69ae632ca68c30cb Mon Sep 17 00:00:00 2001 From: Benjamin Root Date: Thu, 11 Apr 2019 20:47:15 -0400 Subject: [PATCH] pyshp changed the Reader constructor. Closes #449. --- lib/mpl_toolkits/basemap/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mpl_toolkits/basemap/__init__.py b/lib/mpl_toolkits/basemap/__init__.py index a934f4503..25e08eb50 100644 --- a/lib/mpl_toolkits/basemap/__init__.py +++ b/lib/mpl_toolkits/basemap/__init__.py @@ -2130,7 +2130,7 @@ def readshapefile(self,shapefile,name,drawbounds=True,zorder=None, # open shapefile, read vertices for each object, convert # to map projection coordinates (only works for 2D shape types). try: - shf = Reader(shapefile) + shf = Reader(shapefile, encoding=default_encoding) except: raise IOError('error reading shapefile %s.shp' % shapefile) fields = shf.fields