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

gvanrossum@users.sourceforge.net gvanrossum at users.sourceforge.net
Wed Jul 27 01:57:30 CEST 2005


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

Modified Files:
	Tkinter.py 
Log Message:
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.182
retrieving revision 1.183
diff -u -d -r1.182 -r1.183
--- Tkinter.py	1 Mar 2005 08:09:27 -0000	1.182
+++ Tkinter.py	26 Jul 2005 23:57:27 -0000	1.183
@@ -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