Public bug reported:
python-boto's parser for http_proxy is buggy:
-> print "http_proxy env var does not specify port, using default"
(Pdb) l
105 else:
106 if os.environ.has_key('http_proxy'):
107 proxy_port_pair = os.environ['http_proxy'].split(':')[1]
108 if len(proxy_port_pair) != 2:
109 import pdb;pdb.set_trace()
110 -> print "http_proxy env var does not specify port,
using default"
111 self.proxy_port = self.port
112 else:
113 self.proxy_port = proxy_port_pair[1]
114 else:
115 self.proxy_port = None
(Pdb) p os.environ['http_proxy']
'localhost:3128'
(Pdb) p proxy_port_pair
'3128'
This only accepts two-digit ports. The [1] subscript on line 107 should
be removed.
** Affects: python-boto (Ubuntu)
Importance: Undecided
Status: New
--
bug in parsing http_proxy environment variable
https://bugs.launchpad.net/bugs/245356
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs