8000 Merge pull request #1033 from bfroehle/py3k_reload · vbr/matplotlib@58581c7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 58581c7

Browse files
committed
Merge pull request matplotlib#1033 from bfroehle/py3k_reload
Py3k: reload->imp.reload
2 parents be9a310 + 2d4098e commit 58581c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/pyplot.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@
5555
LinearLocator, LogLocator, AutoLocator, MultipleLocator,\
5656
MaxNLocator
5757

58+
try:
59+
reload
60+
except NameError:
61+
# Python 3
62+
from imp import reload
5863

5964
## Backend detection ##
6065
def _backend_selection():

0 commit comments

Comments
 (0)
0