From 80b0bb64ccb0da667f6bb7ae703b66339ce818a4 Mon Sep 17 00:00:00 2001 From: Xylar Asay-Davis Date: Wed, 7 Nov 2018 14:26:07 -0500 Subject: [PATCH] Fix adding map to list in addcyclic This corrects an earlier fix to support python 2 and 3 --- 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 5179d5818..01f3f495f 100644 --- a/lib/mpl_toolkits/basemap/__init__.py +++ b/lib/mpl_toolkits/basemap/__init__.py @@ -5099,7 +5099,7 @@ def _addcyclic_lon(a): if len(arr) == 1: return _addcyclic_lon(arr[-1]) else: - return list(map(_addcyclic,arr[:-1]) + [_addcyclic_lon(arr[-1])]) + return list(map(_addcyclic,arr[:-1])) + [_addcyclic_lon(arr[-1])] def _choosecorners(width,height,**kwargs): """