Commit fd6e1a48 authored by Aurel's avatar Aurel Committed by Arnaud Fontaine

apply setBody patch only in zope2

parent 288ee5d3
...@@ -101,6 +101,7 @@ if 1: # upstream moved WSGIResponse to HTTPResponse.py ...@@ -101,6 +101,7 @@ if 1: # upstream moved WSGIResponse to HTTPResponse.py
if lock: if lock:
self._locked_body = 1 self._locked_body = 1
if not isZope4:
WSGIResponse.setBody = setBody WSGIResponse.setBody = setBody
def write(self, data): def write(self, data):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment