From bc0e9108261693b6278687f4fb4709ff76c2e543 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Thu, 4 Apr 2002 22:55:58 +0000 Subject: Convert a pile of obvious "yes/no" functions to return bool. --- Lib/cgi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/cgi.py') diff --git a/Lib/cgi.py b/Lib/cgi.py index db91ec6d2e4..a7ad5bf01f3 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.""" -- cgit v1.2.3