[Python-checkins] CVS: python/dist/src/Lib/lib-tk Tkinter.py,1.150,1.151
Fred L. Drake
python-dev@python.org
Tue, 12 Dec 2000 15:11:44 -0800
- Previous message: [Python-checkins] CVS: python/dist/src/Lib/distutils cygwinccompiler.py,1.8,1.9
- Next message: [Python-checkins] CVS: python/dist/src/Lib/lib-old Para.py,1.6,1.7 cmp.py,1.1,1.2 cmpcache.py,1.1,1.2 dircmp.py,1.1,1.2 fmt.py,1.5,1.6 grep.py,1.7,1.8 packmail.py,1.7,1.8 tb.py,1.7,1.8 zmod.py,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib/lib-tk
In directory slayer.i.sourceforge.net:/tmp/cvs-serv18670/lib-tk
Modified Files:
Tkinter.py
Log Message:
Update the code to better reflect recommended style:
Use != instead of <> since <> is documented as "obsolescent".
Use "is" and "is not" when comparing with None or type objects.
Index: Tkinter.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/lib-tk/Tkinter.py,v
retrieving revision 1.150
retrieving revision 1.151
diff -C2 -r1.150 -r1.151
*** Tkinter.py 2000/10/23 18:31:14 1.150
--- Tkinter.py 2000/12/12 23:11:41 1.151
***************
*** 340,344 ****
If no parameter is given self is used."""
! if window == None:
window = self
self.tk.call('tkwait', 'window', window._w)
--- 340,344 ----
If no parameter is given self is used."""
! if window is None:
window = self
self.tk.call('tkwait', 'window', window._w)
***************
*** 348,352 ****
If no parameter is given self is used."""
! if window == None:
window = self
self.tk.call('tkwait', 'visibility', window._w)
--- 348,352 ----
If no parameter is given self is used."""
! if window is None:
window = self
self.tk.call('tkwait', 'visibility', window._w)
- Previous message: [Python-checkins] CVS: python/dist/src/Lib/distutils cygwinccompiler.py,1.8,1.9
- Next message: [Python-checkins] CVS: python/dist/src/Lib/lib-old Para.py,1.6,1.7 cmp.py,1.1,1.2 cmpcache.py,1.1,1.2 dircmp.py,1.1,1.2 fmt.py,1.5,1.6 grep.py,1.7,1.8 packmail.py,1.7,1.8 tb.py,1.7,1.8 zmod.py,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]