[Python-checkins] python/dist/src/Lib/lib-tk Tkinter.py, 1.181.2.1, 1.181.2.2

gvanrossum@users.sourceforge.net gvanrossum at users.sourceforge.net
Wed Jul 27 01:59:40 CEST 2005


Update of /cvsroot/python/python/dist/src/Lib/lib-tk
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18345

Modified Files:
      Tag: release24-maint
	Tkinter.py 
Log Message:
(Backport)
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.


Index: Tkinter.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/lib-tk/Tkinter.py,v
retrieving revision 1.181.2.1
retrieving revision 1.181.2.2
diff -u -d -r1.181.2.1 -r1.181.2.2
--- Tkinter.py	1 Mar 2005 08:10:49 -0000	1.181.2.1
+++ Tkinter.py	26 Jul 2005 23:59:38 -0000	1.181.2.2
@@ -1652,12 +1652,6 @@
     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



More information about the Python-checkins mailing list