[Python-checkins] python/dist/src/Doc/tut tut.tex,1.212,1.213

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Tue Dec 2 02:38:35 EST 2003


Update of /cvsroot/python/python/dist/src/Doc/tut
In directory sc8-pr-cvs1:/tmp/cvs-serv5077

Modified Files:
	tut.tex 
Log Message:
Convert a 0/1 to False/True.

Index: tut.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tut/tut.tex,v
retrieving revision 1.212
retrieving revision 1.213
diff -C2 -d -r1.212 -r1.213
*** tut.tex	26 Nov 2003 17:52:45 -0000	1.212
--- tut.tex	2 Dec 2003 07:38:30 -0000	1.213
***************
*** 1421,1426 ****
      while True:
          ok = raw_input(prompt)
!         if ok in ('y', 'ye', 'yes'): return 1
!         if ok in ('n', 'no', 'nop', 'nope'): return 0
          retries = retries - 1
          if retries < 0: raise IOError, 'refusenik user'
--- 1421,1426 ----
      while True:
          ok = raw_input(prompt)
!         if ok in ('y', 'ye', 'yes'): return True
!         if ok in ('n', 'no', 'nop', 'nope'): return False
          retries = retries - 1
          if retries < 0: raise IOError, 'refusenik user'





More information about the Python-checkins mailing list