X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=CacheHandler.py;h=42070a332f389182f1df6340c9602d98d3e59088;hb=591b42e1371c3887b56e0bd2c55a7bca663208fe;hp=7106279fe9243f02e20519adc93ddc954e324eea;hpb=e75091503463e159b2235424c07ad9fa475b318d;p=planet-ucc.git diff --git a/CacheHandler.py b/CacheHandler.py index 7106279..42070a3 100644 --- a/CacheHandler.py +++ b/CacheHandler.py @@ -36,5 +36,5 @@ class CacheObject: def __init__(self): self.etag = None self.date = None - def __eq__(self, other): - return self.etag == other.etag and self.date == other.date + def __ne__(self, other): + return self.etag != other.etag or self.date != other.date