FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Move Python 3 import of reload() to the module that uses it by takluyver · Pull Request #1053 · matplotlib/matplotlib · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (2) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
6 changes: 6 additions & 0 deletions lib/matplotlib/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 0 additions & 6 deletions lib/matplotlib/pyplot.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

Back | FazBrowse Home | New Git URL