Skip to content

Commit 718b8c2

Browse files
author
Steve Chaplin
committed
SC 22/11/2004
svn path=/trunk/matplotlib/; revision=704
1 parent c6244e3 commit 718b8c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/backends/backend_gtk.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ def fn_name(): return sys._getframe(1).f_code.co_name
1414
from matplotlib.cbook import is_string_like, enumerate, True, False, onetrue
1515
from matplotlib.font_manager import fontManager
1616

17-
from matplotlib.backend_bases import \
18-
RendererBase, GraphicsContextBase, FigureManagerBase, FigureCanvasBase,\
19-
NavigationToolbar2, cursors, MplEvent
17+
from matplotlib.backend_bases import RendererBase, GraphicsContextBase, \
18+
FigureManagerBase, FigureCanvasBase, NavigationToolbar2, cursors, MplEvent
2019
from matplotlib._matlab_helpers import Gcf
2120
from matplotlib.figure import Figure
2221

@@ -1541,6 +1540,7 @@ def get_filename_from_user (self):
15411540

15421541
def exception_handler(type, value, tb):
15431542
"""Handle uncaught exceptions"""
1543+
# type is of format - exceptions.IOError
15441544
# get the filename attribute if available (for IOError)
15451545
if hasattr(value, 'filename') and value.filename != None:
15461546
msg = value.filename + ': '
@@ -1550,7 +1550,7 @@ def exception_handler(type, value, tb):
15501550
msg += value.strerror
15511551
else:
15521552
msg = value
1553-
1553+
15541554
error_msg_gtk(msg)
15551555

15561556
sys.excepthook = exception_handler

0 commit comments

Comments
 (0)