diff options
| author | Julian Andres Klode <jak@debian.org> | 2014-01-06 16:11:28 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2014-01-06 16:20:36 +0100 |
| commit | 16741d48bf49b05c54159c9c39ed7dd562f1f55f (patch) | |
| tree | ef6826e4f41bdbef333f290f0f73613a943e9474 /apt | |
| parent | 1ef0777d668a6bde0eb592928996a08570864c3f (diff) | |
| download | python-apt-16741d48bf49b05c54159c9c39ed7dd562f1f55f.tar.gz | |
apt/package.py: Fix BaseDependency.__dstr.__ne__()
It turns out I missed this. Just simplify it to return not
self.__eq__(other). Also add a test case for it.
Reported-by: Michael Schaller <michael@5challer.de>
Diffstat (limited to 'apt')
| -rw-r--r-- | apt/package.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt/package.py b/apt/package.py index 78b10af4..5d122968 100644 --- a/apt/package.py +++ b/apt/package.py @@ -78,7 +78,7 @@ class BaseDependency(object): return str.__eq__(self, other) or str.__eq__(2 * self, other) def __ne__(self, other): - return str.__eq__(self, other) and str.__ne__(2 * self, other) + return not self.__eq__(other) def __init__(self, name, rel, ver, pre, rawtype=None): self.name = name |
