summaryrefslogtreecommitdiff
path: root/utils/get_debian_mirrors.py
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-01-11 19:30:07 +0100
committerJulian Andres Klode <jak@debian.org>2009-01-11 19:30:07 +0100
commitb237760c6d7009f9833b86e6dbfc3cbf6d059977 (patch)
tree19dd8f4f11b1c004a7f9bbb2b9e9f545d0ed2492 /utils/get_debian_mirrors.py
parent31cdfa2e20361f76f6e011bbcdad19f9daa1f58f (diff)
parent7b14352c54b7acbf2a68240fa960e188c6e8742a (diff)
downloadpython-apt-b237760c6d7009f9833b86e6dbfc3cbf6d059977.tar.gz
Merge Ben Finney's whitespace changes (Closes: #481563)
Diffstat (limited to 'utils/get_debian_mirrors.py')
-rwxr-xr-xutils/get_debian_mirrors.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/get_debian_mirrors.py b/utils/get_debian_mirrors.py
index 512731ed..2e3c7296 100755
--- a/utils/get_debian_mirrors.py
+++ b/utils/get_debian_mirrors.py
@@ -39,11 +39,13 @@ req = urllib2.Request("http://www.debian.org/mirror/mirrors_full")
match = re.compile("^.*>([A-Za-z0-9-.\/_]+)<\/a>.*\n$")
match_location = re.compile('^<strong><a name="([A-Z]+)">.*')
+
def add_sites(line, proto, sites, mirror_type):
path = match.sub(r"\1", line)
for site in sites:
mirror_type.append("%s://%s%s\n" % (proto, site.lstrip(), path))
+
try:
print "Downloading mirrors list from the Debian website..."
uri=urllib2.urlopen(req)