mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
ubuntutools/common.py: Remove https_proxy unsetting code, working around
LP: #94130.
This commit is contained in:
parent
303e7ae18f
commit
324c2957fd
4
debian/changelog
vendored
4
debian/changelog
vendored
@ -14,8 +14,10 @@ ubuntu-dev-tools (0.109) UNRELEASED; urgency=low
|
|||||||
DEBEMAIL. (LP: #665202)
|
DEBEMAIL. (LP: #665202)
|
||||||
* Add the beginnings of a test suite. (LP: #690386)
|
* Add the beginnings of a test suite. (LP: #690386)
|
||||||
- Switch to setuptools, to support setup.py test.
|
- Switch to setuptools, to support setup.py test.
|
||||||
|
* ubuntutools/common.py: Remove https_proxy unsetting code, working around
|
||||||
|
LP: #94130.
|
||||||
|
|
||||||
-- Stefano Rivera <stefanor@ubuntu.com> Mon, 20 Dec 2010 10:58:53 +0200
|
-- Stefano Rivera <stefanor@ubuntu.com> Mon, 20 Dec 2010 20:54:14 +0200
|
||||||
|
|
||||||
ubuntu-dev-tools (0.108) experimental; urgency=low
|
ubuntu-dev-tools (0.108) experimental; urgency=low
|
||||||
|
|
||||||
|
@ -15,16 +15,6 @@
|
|||||||
# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
# PERFORMANCE OF THIS SOFTWARE.
|
# PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
|
|
||||||
# Clear https_proxy env var as it's not supported in urllib/urllib2; see
|
|
||||||
# LP #122551
|
|
||||||
if os.environ.has_key('https_proxy'):
|
|
||||||
print >> sys.stderr, "Ignoring https_proxy (no support in urllib/urllib2; see LP #122551)"
|
|
||||||
del os.environ['https_proxy']
|
|
||||||
|
|
||||||
|
|
||||||
def memoize_noargs(func):
|
def memoize_noargs(func):
|
||||||
"Simple memoization wrapper, for functions without arguments"
|
"Simple memoization wrapper, for functions without arguments"
|
||||||
func.cache = None
|
func.cache = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user