diff options
| author | Steve Langasek <steve.langasek@canonical.com> | 2012-06-11 20:28:54 +0000 |
|---|---|---|
| committer | Steve Langasek <steve.langasek@canonical.com> | 2012-06-11 20:28:54 +0000 |
| commit | b5cd01652e1ccbc6c3416df88ac66d2cfcbc0a76 (patch) | |
| tree | d42414125cbd4fba28de0ac3205e86f0ad96120a | |
| parent | e65c125fb031c219317c77724a6b4213cb3c695b (diff) | |
| download | python-apt-b5cd01652e1ccbc6c3416df88ac66d2cfcbc0a76.tar.gz | |
utils/get_ubuntu_mirrors_from_lp.py: move this script to python3
| -rw-r--r-- | debian/changelog | 3 | ||||
| -rwxr-xr-x | utils/get_ubuntu_mirrors_from_lp.py | 11 |
2 files changed, 8 insertions, 6 deletions
diff --git a/debian/changelog b/debian/changelog index d786c3c1..8b860590 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,6 +9,9 @@ python-apt (0.8.5) UNRELEASED; urgency=low * data/templates/Ubuntu.info.in: - add quantal + [ Steve Langasek ] + * utils/get_ubuntu_mirrors_from_lp.py: move this script to python3 + -- Michael Vogt <mvo@debian.org> Tue, 17 Apr 2012 14:09:24 +0200 python-apt (0.8.4) unstable; urgency=low diff --git a/utils/get_ubuntu_mirrors_from_lp.py b/utils/get_ubuntu_mirrors_from_lp.py index ed0ee936..5f9325e4 100755 --- a/utils/get_ubuntu_mirrors_from_lp.py +++ b/utils/get_ubuntu_mirrors_from_lp.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # get_ubuntu_lp_mirrors.py # @@ -40,9 +40,8 @@ for entry in d.entries: countries[countrycode].add(link.href) -keys = countries.keys() -keys.sort() -print "mirror://mirrors.ubuntu.com/mirrors.txt" +keys = sorted(countries.keys()) +print("mirror://mirrors.ubuntu.com/mirrors.txt") for country in keys: - print "#LOC:%s" % country - print "\n".join(sorted(countries[country])) + print("#LOC:%s" % country) + print("\n".join(sorted(countries[country]))) |
