juju-solutions / jujuresources

Manage binary resources for charms
MIT License
2 stars 4 forks source link

Use urllib2 instead of urllib #15

Closed kwmonroe closed 8 years ago

kwmonroe commented 8 years ago

urllib has trouble with certain proxy configurations, for example, failing to retrieve the https pypi index when the proxy is set as http (see #11). urllib2.urlopen does not have the same problem, and has the added benefit of raising URLError when a server responds with a code > 400, which means we can get rid of our custom error classes.

kwmonroe commented 8 years ago

This is available in jujuresources >= 0.3.0. All of the the Apache-based big data charms in the ~bigdata-dev namespace have been updated to use this library:

https://jujucharms.com/u/bigdata-dev/#charms

This will make its way from -dev to the recommended namespace during the next promulgation window.