-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
source_address not supported in python 2.6 httplib #195
Comments
Potential fix for clients.py
|
For reference httplib document stating source_address added in python 2.7 |
I encountered the same issue in the context of making libtaxii compatible with Python 3. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
File "/usr/lib/python2.6/site-packages/libtaxii/clients.py", line 341, in call_taxii_service2
response = urllib2.urlopen(req)
File "/usr/lib64/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib64/python2.6/urllib2.py", line 391, in open
response = self._open(req, data)
File "/usr/lib64/python2.6/urllib2.py", line 409, in _open
'_open', req)
File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/site-packages/libtaxii/clients.py", line 367, in https_open
return self.do_open(self.get_connection, req)
File "/usr/lib64/python2.6/urllib2.py", line 1136, in do_open
h = http_class(host, timeout=req.timeout) # will parse host:port
File "/usr/lib/python2.6/site-packages/libtaxii/clients.py", line 374, in get_connection
ca_certs=self.ca_certs)
File "/usr/lib/python2.6/site-packages/libtaxii/clients.py", line 404, in init
source_address)
TypeError: init() takes at most 7 arguments (8 given)
The text was updated successfully, but these errors were encountered: