commit | d61d077bf57796555f0d8747718f60b35f136d6b | [log] [tgz] |
---|---|---|
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | Fri Sep 17 23:27:09 2010 +0000 |
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | Fri Sep 17 23:27:09 2010 +0000 |
tree | b9e683db9d98c25ae65d20c5be7294f612ae65d0 | |
parent | 19ec67acf677ed5bc13e29555068568b524d561a [diff] [blame] |
#1730136: Fix comparison between a tk Font object and an object of a different type.
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 @@ 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)