[Python-checkins] CVS: python/dist/src/Modules cgen.py,2.15,2.16
Tim Peters
tim_one@users.sourceforge.net
Thu, 04 Apr 2002 14:56:00 -0800
- Previous message: [Python-checkins] CVS: python/dist/src/Lib/distutils/command build_py.py,1.35,1.36
- Next message: [Python-checkins] CVS: python/dist/src/Lib BaseHTTPServer.py,1.19,1.20 CGIHTTPServer.py,1.22,1.23 ConfigParser.py,1.39,1.40 SocketServer.py,1.29,1.30 asyncore.py,1.31,1.32 bdb.py,1.37,1.38 cgi.py,1.70,1.71 code.py,1.20,1.21 dospath.py,1.25,1.26 filecmp.py,1.10,1.11 getopt.py,1.16,1.17 macpath.py,1.33,1.34 mailbox.py,1.35,1.36 mhlib.py,1.28,1.29 mutex.py,1.9,1.10 ntpath.py,1.45,1.46 os.py,1.54,1.55 os2emxpath.py,1.1,1.2 posixpath.py,1.46,1.47 pydoc.py,1.60,1.61 robotparser.py,1.13,1.14 symtable.py,1.5,1.6 tabnanny.py,1.17,1.18 threading.py,1.21,1.22 webbrowser.py,1.29,1.30
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv18060/python/Modules
Modified Files:
cgen.py
Log Message:
Convert a pile of obvious "yes/no" functions to return bool.
Index: cgen.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/cgen.py,v
retrieving revision 2.15
retrieving revision 2.16
diff -C2 -d -r2.15 -r2.16
*** cgen.py 1 Jul 2000 00:16:13 -0000 2.15
--- cgen.py 4 Apr 2002 22:55:58 -0000 2.16
***************
*** 57,64 ****
#
def isnum(s):
! if not s: return 0
for c in s:
! if not c in digits: return 0
! return 1
--- 57,64 ----
#
def isnum(s):
! if not s: return False
for c in s:
! if not c in digits: return False
! return True
- Previous message: [Python-checkins] CVS: python/dist/src/Lib/distutils/command build_py.py,1.35,1.36
- Next message: [Python-checkins] CVS: python/dist/src/Lib BaseHTTPServer.py,1.19,1.20 CGIHTTPServer.py,1.22,1.23 ConfigParser.py,1.39,1.40 SocketServer.py,1.29,1.30 asyncore.py,1.31,1.32 bdb.py,1.37,1.38 cgi.py,1.70,1.71 code.py,1.20,1.21 dospath.py,1.25,1.26 filecmp.py,1.10,1.11 getopt.py,1.16,1.17 macpath.py,1.33,1.34 mailbox.py,1.35,1.36 mhlib.py,1.28,1.29 mutex.py,1.9,1.10 ntpath.py,1.45,1.46 os.py,1.54,1.55 os2emxpath.py,1.1,1.2 posixpath.py,1.46,1.47 pydoc.py,1.60,1.61 robotparser.py,1.13,1.14 symtable.py,1.5,1.6 tabnanny.py,1.17,1.18 threading.py,1.21,1.22 webbrowser.py,1.29,1.30
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]