Skip to content

Commit

Permalink
Work around the lack of a 2to3 reload -> imp.reload fixer.
Browse files Browse the repository at this point in the history
  • Loading branch information
bfroehle committed Jul 21, 2012
1 parent 9911308 commit 2d4098e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/matplotlib/pyplot.py
Expand Up @@ -55,6 +55,11 @@
LinearLocator, LogLocator, AutoLocator, MultipleLocator,\
MaxNLocator

try:
reload
except NameError:
# Python 3
from imp import reload

## Backend detection ##
def _backend_selection():
Expand Down

0 comments on commit 2d4098e

Please sign in to comment.