Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4fe69ba0
Commit
4fe69ba0
authored
Oct 09, 2014
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #20167: revise condition to accomodate message change.
parent
5f16f90d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
Lib/idlelib/MultiCall.py
Lib/idlelib/MultiCall.py
+4
-11
No files found.
Lib/idlelib/MultiCall.py
View file @
4fe69ba0
...
...
@@ -60,8 +60,7 @@ _modifier_names = dict([(name, number)
# destroyed before .__del__ methods here are called. The following
# is used to selectively ignore shutdown exceptions to avoid
# 'Exception ignored' messages. See http://bugs.python.org/issue20167
APPLICATION_GONE
=
'''
\
can't invoke "bind" command: application has been destroyed'''
APPLICATION_GONE
=
"application has been destroyed"
# A binder is a class which binds functions to one type of event. It has two
# methods: bind and unbind, which get a function and a parsed sequence, as
...
...
@@ -108,9 +107,7 @@ class _SimpleBinder:
self
.
widget
.
unbind
(
self
.
widgetinst
,
self
.
sequence
,
self
.
handlerid
)
except
tkinter
.
TclError
as
e
:
if
e
.
args
[
0
]
==
APPLICATION_GONE
:
pass
else
:
if
not
APPLICATION_GONE
in
e
.
args
[
0
]:
raise
# An int in range(1 << len(_modifiers)) represents a combination of modifiers
...
...
@@ -243,9 +240,7 @@ class _ComplexBinder:
try
:
self
.
widget
.
unbind
(
self
.
widgetinst
,
seq
,
id
)
except
tkinter
.
TclError
as
e
:
if
e
.
args
[
0
]
==
APPLICATION_GONE
:
break
else
:
if
not
APPLICATION_GONE
in
e
.
args
[
0
]:
raise
# define the list of event types to be handled by MultiEvent. the order is
...
...
@@ -412,9 +407,7 @@ def MultiCallCreator(widget):
try:
self.__binders[triplet[1]].unbind(triplet, func)
except tkinter.TclError as e:
if e.args[0] == APPLICATION_GONE:
break
else:
if not APPLICATION_GONE in e.args[0]:
raise
_multicall_dict[widget] = MultiCall
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment