summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
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