[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


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)