]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
(Backport)
authorGuido van Rossum <guido@python.org>
Tue, 26 Jul 2005 23:59:58 +0000 (23:59 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 26 Jul 2005 23:59:58 +0000 (23:59 +0000)
Fix a problem in Tkinter introduced by SF patch #869468 (checked in as
1.179): delete bogus __hasattr__ and __delattr__ methods on class Tk
that were breaking Tkdnd.

Lib/lib-tk/Tkinter.py
Misc/NEWS

index 81bf465de1d1437adc962430ebc2715b0722e875..d33de0b80495c9dcbdd7c00279da570c29948edd 100644 (file)
@@ -1652,12 +1652,6 @@ class Tk(Misc, Wm):
     def __getattr__(self, attr):
         "Delegate attribute access to the interpreter object"
         return getattr(self.tk, attr)
-    def __hasattr__(self, attr):
-        "Delegate attribute access to the interpreter object"
-        return hasattr(self.tk, attr)
-    def __delattr__(self, attr):
-        "Delegate attribute access to the interpreter object"
-        return delattr(self.tk, attr)
 
 # Ideally, the classes Pack, Place and Grid disappear, the
 # pack/place/grid methods are defined on the Widget class, and
index 1c99a82d9424154220699277758ff6154300d0f5..1eb846c4b91c358df577e945ef26e8f51678dd0f 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -53,6 +53,10 @@ Extension Modules
 Library
 -------
 
+- Fix a problem in Tkinter introduced by SF patch #869468: delete bogus
+  __hasattr__ and __delattr__ methods on class Tk that were breaking
+  Tkdnd.
+
 - Bug #1015140: disambiguated the term "article id" in nntplib docs and
   docstrings to either "article number" or "message id".