summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Langasek <steve.langasek@canonical.com>2012-06-11 20:28:54 +0000
committerSteve Langasek <steve.langasek@canonical.com>2012-06-11 20:28:54 +0000
commitb5cd01652e1ccbc6c3416df88ac66d2cfcbc0a76 (patch)
treed42414125cbd4fba28de0ac3205e86f0ad96120a
parente65c125fb031c219317c77724a6b4213cb3c695b (diff)
downloadpython-apt-b5cd01652e1ccbc6c3416df88ac66d2cfcbc0a76.tar.gz
utils/get_ubuntu_mirrors_from_lp.py: move this script to python3
-rw-r--r--debian/changelog3
-rwxr-xr-xutils/get_ubuntu_mirrors_from_lp.py11
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])))