Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 58581c7

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

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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)