summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-03-29 21:26:06 +0200
committerJulian Andres Klode <jak@debian.org>2010-03-29 21:26:06 +0200
commitcbe639cf94a2fd80ca0ee0b2789eb93564b59edc (patch)
tree55981f7d8c3f08917bf0632bea5ec569a3d628af
parent72c3745b28d64d43f6c21f960e13f0ee6142ec8d (diff)
downloadpython-apt-cbe639cf94a2fd80ca0ee0b2789eb93564b59edc.tar.gz
Add has_key to the list of deprecated functions.
-rw-r--r--debian/changelog1
-rwxr-xr-xutils/migrate-0.8.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index a8211c5f..9a1ed281 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ python-apt (0.7.94.3) UNRELEASED; urgency=low
- Change priority to standard, keep -doc and -dev on optional.
* utils/migrate-0.8.py:
- Open files in universal newline support and pass filename to ast.parse.
+ - Add has_key to the list of deprecated functions.
[ Michael Vogt ]
* apt/cache.py:
diff --git a/utils/migrate-0.8.py b/utils/migrate-0.8.py
index 56d51ef9..bc3bc599 100755
--- a/utils/migrate-0.8.py
+++ b/utils/migrate-0.8.py
@@ -123,7 +123,7 @@ deprecated_cpp_stuff = set([
'SelStateHold', 'SelStateInstall', 'SelStatePurge', 'SelStateUnknown',
'SizeToStr', 'StrToTime', 'StringToBool', 'Time', 'TimeRFC1123',
'TimeToStr', 'URItoFileName', 'UpstreamVersion', 'VersionCompare',
- 'newConfiguration'])
+ 'newConfiguration', '.has_key'])
def do_color(string, words):
"""Colorize (red) the given words in the given string."""