Commits

Lynn Rees committed 7d9f522

[svn]

Comments (0)

Files changed (1)

branches/0.3/wsgiform/util.py

 
 '''Utilities for server-side form processing.'''
 
-import cgi, re, string
+import cgi
+import re
+import string
+from StringIO import StringIO
 from xml.sax import saxutils
 
 __all__ = ['hyperescape', 'escape', 'sterilize', 'escapeform', 'hyperform',
     wsginput = environ['wsgi.input']
     # Non-destructively fetch string value of wsgi.input
     if hasattr(wsginput, 'getvalue'):
-        qs = winput.getvalue()
+        qs = wsginput.getvalue()
     # Otherwise, read and reconstruct wsgi.input
     else:
         # Never read more than content length