Skip to content

Commit f8252e5

Browse files
committed
Merge pull request #244 from micahcochran/stop-resource-warnings
stops ResourceWarnings for unclosed files
2 parents 5e07a95 + 7a88b44 commit f8252e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/mpl_toolkits/basemap/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,6 +1460,8 @@ def _readboundarydata(self,name,as_polygons=False):
14601460
if not as_polygons or len(b) > 4:
14611461
polygons.append(list(zip(b[:,0],b[:,1])))
14621462
polygon_types.append(typ)
1463+
bdatfile.close()
1464+
bdatmetafile.close()
14631465
return polygons, polygon_types
14641466

14651467
def _getmapboundary(self):

0 commit comments

Comments
 (0)