From 2d4098e80dd273140402f534d6c0e048e4097686 Mon Sep 17 00:00:00 2001 From: "Bradley M. Froehle" Date: Fri, 20 Jul 2012 17:33:42 -0700 Subject: [PATCH] Work around the lack of a 2to3 `reload` -> `imp.reload` fixer. --- lib/matplotlib/pyplot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/matplotlib/pyplot.py b/lib/matplotlib/pyplot.py index a4cc8924f3c9..0965235e44f5 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -55,6 +55,11 @@ LinearLocator, LogLocator, AutoLocator, MultipleLocator,\ MaxNLocator +try: + reload +except NameError: + # Python 3 + from imp import reload ## Backend detection ## def _backend_selection():