summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-04-04 22:55:58 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-04-04 22:55:58 (GMT)
commitbc0e9108261693b6278687f4fb4709ff76c2e543 (patch)
treeafef5d4734034ed0268950cf06321aefd4154ff3 /Modules
parent2f486b7fa6451b790b154e6e4751239d69d46952 (diff)
downloadcpython-bc0e9108261693b6278687f4fb4709ff76c2e543.zip
cpython-bc0e9108261693b6278687f4fb4709ff76c2e543.tar.gz
cpython-bc0e9108261693b6278687f4fb4709ff76c2e543.tar.bz2
Convert a pile of obvious "yes/no" functions to return bool.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/cgen.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/cgen.py b/Modules/cgen.py
index 6403eae..af336ce 100644
--- a/Modules/cgen.py
+++ b/Modules/cgen.py
@@ -56,10 +56,10 @@ def getnum(s):
# Function to check if a string is a number
#
def isnum(s):
- if not s: return 0
+ if not s: return False
for c in s:
- if not c in digits: return 0
- return 1
+ if not c in digits: return False
+ return True
# Allowed function return types