You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by gr...@apache.org on 2003/08/28 20:47:13 UTC
cvs commit: httpd-python/lib/python/mod_python util.py
grisha 2003/08/28 11:47:13
Modified: lib/python/mod_python util.py
Log:
Add __contains__ to FieldStorage
Submitted by: Michal Vitecek
Revision Changes Path
1.18 +3 -1 httpd-python/lib/python/mod_python/util.py
Index: util.py
===================================================================
RCS file: /home/cvs/httpd-python/lib/python/mod_python/util.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- util.py 14 Aug 2003 15:24:42 -0000 1.17
+++ util.py 28 Aug 2003 18:47:13 -0000 1.18
@@ -297,6 +297,8 @@
if item.name == key: return 1
return 0
+ __contains__ = has_key
+
def __len__(self):
"""Dictionary style len(x) support."""
return len(self.keys())