diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-01-11 19:53:01 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-01-11 19:53:01 +0100 |
| commit | c94a512af6836c4d8f3835a5a6b3719ad7245249 (patch) | |
| tree | b7e26af9a794cdc8a81fcbd42aa34c36ad645e92 /utils | |
| parent | b237760c6d7009f9833b86e6dbfc3cbf6d059977 (diff) | |
| parent | 75676866d4bf394b3ba1ddef06e0c93f6da03242 (diff) | |
| download | python-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-x | utils/get_ubuntu_mirrors_from_lp.py | 2 |
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)) |
