diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-11-22 18:36:46 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-11-22 18:36:46 +0100 |
| commit | fb4ef05de0a64f75f2896d9e74c88a3bb3db00c7 (patch) | |
| tree | be06aceff723613c6b726799c09a0951ee1a009d /apt/package.py | |
| parent | ff886d6a8c468a31433013250aed337dfe0770cc (diff) | |
| download | python-apt-fb4ef05de0a64f75f2896d9e74c88a3bb3db00c7.tar.gz | |
apt/package.py: use lt() instead of cmp()
Diffstat (limited to 'apt/package.py')
| -rw-r--r-- | apt/package.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt/package.py b/apt/package.py index cb373c2e..45d6044b 100644 --- a/apt/package.py +++ b/apt/package.py @@ -707,8 +707,8 @@ class Package(object): return '<Package: name:%r architecture=%r id:%r>' % (self._pkg.name, self._pkg.architecture, self._pkg.id) - def __cmp__(self, other): - return cmp(self.name, other.name) + def __lt__(self, other): + return self.name < other.name def candidate(self): """Return the candidate version of the package. |
