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

Skip to content

Commit 2d4098e

Browse files
committed
Work around the lack of a 2to3 reload -> imp.reload fixer.
1 parent 9911308 commit 2d4098e

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)