Skip to content

Commit

Permalink
Merge pull request #235 from zopefoundation/import_fieldstorage_directly
Browse files Browse the repository at this point in the history
Import FieldStorage directly to reenable a patch in plone.app.blob
  • Loading branch information
mauritsvanrees committed Dec 8, 2017
2 parents d500cb2 + dc5f703 commit 5379998
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ZPublisher/HTTPRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
""" HTTP request management.
"""

import cgi
from cgi import FieldStorage
import codecs
from copy import deepcopy
import os
Expand Down Expand Up @@ -504,7 +504,7 @@ def processInputs(
environ['QUERY_STRING'] = ''

meth = None
fs = cgi.FieldStorage(fp=fp, environ=environ, keep_blank_values=1)
fs = FieldStorage(fp=fp, environ=environ, keep_blank_values=1)

# Keep a reference to the FieldStorage. Otherwise it's
# __del__ method is called too early and closing FieldStorage.file.
Expand Down Expand Up @@ -1634,7 +1634,7 @@ def sane_environment(env):
return dict


ZopeFieldStorage = cgi.FieldStorage # BBB
ZopeFieldStorage = FieldStorage # BBB


# Original version: zope.publisher.browser.FileUpload
Expand Down

0 comments on commit 5379998

Please sign in to comment.