diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2010-09-17 23:27:09 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2010-09-17 23:27:09 (GMT) |
commit | d61d077bf57796555f0d8747718f60b35f136d6b (patch) | |
tree | b9e683db9d98c25ae65d20c5be7294f612ae65d0 /Lib/tkinter/font.py | |
parent | 19ec67acf677ed5bc13e29555068568b524d561a (diff) | |
download | cpython-d61d077bf57796555f0d8747718f60b35f136d6b.zip cpython-d61d077bf57796555f0d8747718f60b35f136d6b.tar.gz cpython-d61d077bf57796555f0d8747718f60b35f136d6b.tar.bz2 |
#1730136: Fix comparison between a tk Font object and an object of a different type.
Diffstat (limited to 'Lib/tkinter/font.py')
-rw-r--r-- | Lib/tkinter/font.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tkinter/font.py b/Lib/tkinter/font.py index 1ec760e..5425b06 100644 --- a/Lib/tkinter/font.py +++ b/Lib/tkinter/font.py @@ -97,7 +97,7 @@ class Font: return self.name def __eq__(self, other): - return self.name == other.name and isinstance(other, Font) + return isinstance(other, Font) and self.name == other.name def __getitem__(self, key): return self.cget(key) |