2
# common.py - provides functions which are commonly used by the
3
# ubuntu-dev-tools package.
5
# Copyright (C) 2008 Jonathan Davies <jpds@ubuntu.com>
6
# Copyright (C) 2008 Siegfried-Angel Gevatter Pujals <rainct@ubuntu.com>
8
# Some of the functions are based upon code written by Martin Pitt
9
# <martin.pitt@ubuntu.com> and Kees Cook <kees@ubuntu.com>.
11
# ##################################################################
13
# This program is free software; you can redistribute it and/or
14
# modify it under the terms of the GNU General Public License
15
# as published by the Free Software Foundation; either version 3
16
# of the License, or (at your option) any later version.
18
# This program is distributed in the hope that it will be useful,
19
# but WITHOUT ANY WARRANTY; without even the implied warranty of
20
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
# GNU General Public License for more details.
23
# See file /usr/share/common-licenses/GPL for more details.
25
# ##################################################################
37
# Clear https_proxy env var as it's not supported in urllib/urllib2; see
39
if os.environ.has_key('https_proxy'):
40
print >> sys.stderr, "Ignoring https_proxy (no support in urllib/urllib2; see LP #122551)"
41
del os.environ['https_proxy']