Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

@takluyver

This was added by PR #1033, but the call to reload() was moved in commit 865f1c0. This puts it back in the file that needs it.

@WeatherGod
Collaborator

Good catch! Merging...

@WeatherGod WeatherGod merged commit bd5ca33 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 6 deletions.
  1. +6 −0 lib/matplotlib/__init__.py
  2. +0 −6 lib/matplotlib/pyplot.py
View
6 lib/matplotlib/__init__.py
@@ -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:
View
6 lib/matplotlib/pyplot.py
@@ -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
Something went wrong with that request. Please try again.