summaryrefslogtreecommitdiffstats
path: root/Lib/cgi.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/cgi.py')
-rwxr-xr-xLib/cgi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/cgi.py b/Lib/cgi.py
index db91ec6..a7ad5bf 100755
--- a/Lib/cgi.py
+++ b/Lib/cgi.py
@@ -600,8 +600,8 @@ class FieldStorage:
if self.list is None:
raise TypeError, "not indexable"
for item in self.list:
- if item.name == key: return 1
- return 0
+ if item.name == key: return True
+ return False
def __len__(self):
"""Dictionary style len(x) support."""