Move Python 3 import of reload() to the module that uses it #1053

Merged
merged 1 commit into from Aug 1, 2012
@@ -106,6 +106,12 @@
import distutils.sysconfig
import distutils.version
+try:
+ reload
+except NameError:
+ # Python 3
+ from imp import reload
+
# Needed for toolkit setuptools support
if 0:
try:
@@ -55,12 +55,6 @@
LinearLocator, LogLocator, AutoLocator, MultipleLocator,\
MaxNLocator
-try:
- reload
-except NameError:
- # Python 3
- from imp import reload
-
## Backend detection ##
def _backend_selection():
""" If rcParams['backend_fallback'] is true, check to see if the