Skip to content

Instantly share code, notes, and snippets.

View hynekcer's full-sized avatar

Hynek Cernoch hynekcer

  • Prague, Czech republic
View GitHub Profile
@rbarrois
rbarrois / gist:3721801
Created September 14, 2012 13:05
Well behaving HTTP transport for suds
from suds.transport.http import HttpTransport as SudsHttpTransport
class WellBehavedHttpTransport(SudsHttpTransport):
"""HttpTransport which properly obeys the ``*_proxy`` environment variables."""
def u2handlers(self):
"""Return a list of specific handlers to add.
The urllib2 logic regarding ``build_opener(*handlers)`` is: