[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/testing/functional.py
no need to pass None as the second arg of dict.get()
Fred L. Drake, Jr.
fdrake at gmail.com
Fri Mar 18 12:33:20 EST 2005
Log message for revision 29567:
no need to pass None as the second arg of dict.get()
Changed:
U Zope3/trunk/src/zope/app/testing/functional.py
-=-
Modified: Zope3/trunk/src/zope/app/testing/functional.py
===================================================================
--- Zope3/trunk/src/zope/app/testing/functional.py 2005-03-18 16:17:51 UTC (rev 29566)
+++ Zope3/trunk/src/zope/app/testing/functional.py 2005-03-18 17:33:20 UTC (rev 29567)
@@ -583,7 +583,7 @@
is_xml = content_type.startswith('text/xml')
if method in ('GET', 'POST', 'HEAD'):
- if (method == 'POST' and environment.get('HTTP_SOAPACTION', None)
+ if (method == 'POST' and environment.get('HTTP_SOAPACTION')
and is_xml):
factory = zapi.queryUtility(ISOAPRequestFactory)
if factory is not None:
More information about the Zope3-Checkins
mailing list