summaryrefslogtreecommitdiffstats
path: root/Lib/cgi.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/cgi.py')
-rwxr-xr-xLib/cgi.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/cgi.py b/Lib/cgi.py
index 5f4bad3..cf0146f 100755
--- a/Lib/cgi.py
+++ b/Lib/cgi.py
@@ -525,6 +525,9 @@ class FieldStorage:
return "FieldStorage(%s, %s, %s)" % (
`self.name`, `self.filename`, `self.value`)
+ def __iter__(self):
+ return iter(self.keys())
+
def __getattr__(self, name):
if name != 'value':
raise AttributeError, name