~ubuntu-branches/ubuntu/intrepid/ubuntu-dev-tools/intrepid-backports

« back to all changes in this revision

Viewing changes to ubuntutools/common.py

  • Committer: Bazaar Package Importer
  • Author(s): Siegfried Gevatter (RainCT)
  • Date: 2009-02-06 11:14:15 UTC
  • mfrom: (47.1.17 jaunty)
  • Revision ID: james.westby@ubuntu.com-20090206111415-6102orypwo4u8uw2
Tags: 0.63~intrepid1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# common.py - provides functions which are commonly used by the
 
3
#             ubuntu-dev-tools package.
 
4
#
 
5
# Copyright (C) 2008 Jonathan Davies <jpds@ubuntu.com>
 
6
# Copyright (C) 2008 Siegfried-Angel Gevatter Pujals <rainct@ubuntu.com>
 
7
#
 
8
# Some of the functions are based upon code written by Martin Pitt
 
9
# <martin.pitt@ubuntu.com> and Kees Cook <kees@ubuntu.com>.
 
10
#
 
11
# ##################################################################
 
12
#
 
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.
 
17
 
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.
 
22
#
 
23
# See file /usr/share/common-licenses/GPL for more details.
 
24
#
 
25
# ##################################################################
 
26
 
 
27
import cookielib
 
28
import glob
 
29
import os.path
 
30
import re
 
31
import subprocess
 
32
import sys
 
33
import urllib2
 
34
import urlparse
 
35
import urllib
 
36
 
 
37
# Clear https_proxy env var as it's not supported in urllib/urllib2; see
 
38
# LP #122551
 
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']
 
42
 
 
43
 
 
44
 
 
45
 
 
46