summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-01-11 19:53:01 +0100
committerJulian Andres Klode <jak@debian.org>2009-01-11 19:53:01 +0100
commitc94a512af6836c4d8f3835a5a6b3719ad7245249 (patch)
treeb7e26af9a794cdc8a81fcbd42aa34c36ad645e92 /utils
parentb237760c6d7009f9833b86e6dbfc3cbf6d059977 (diff)
parent75676866d4bf394b3ba1ddef06e0c93f6da03242 (diff)
downloadpython-apt-c94a512af6836c4d8f3835a5a6b3719ad7245249.tar.gz
* Merge Ben Finney's do not use has_key() (Closes: #481878)
A little bit adjusted to not remove the has_key() methods, and to use has_key() where needed [the low-level part does not have the needed functionality for 'key in mapping'].
Diffstat (limited to 'utils')
-rwxr-xr-xutils/get_ubuntu_mirrors_from_lp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/get_ubuntu_mirrors_from_lp.py b/utils/get_ubuntu_mirrors_from_lp.py
index 59ddd84e..b912f28d 100755
--- a/utils/get_ubuntu_mirrors_from_lp.py
+++ b/utils/get_ubuntu_mirrors_from_lp.py
@@ -70,7 +70,7 @@ def find(split):
country = re.search(r"<strong>(.+?)</strong>", split)
if not country:
return
- if countries.has_key(country.group(1)):
+ if country.group(1) in countries:
lines.append("#LOC:%s" % countries[country.group(1)].upper())
else:
lines.append("#LOC:%s" % country.group(1))