Lynn Rees committed 7d9f522


  • Participants
  • Parent commits 5fff922
  • Branches wsgiform
  • Tags svn.26

Comments (0)

Files changed (1)

File branches/0.3/wsgiform/

 '''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
         # Never read more than content length