diff options
author | Chris Withers <chris@simplistix.co.uk> | 2013-05-26 22:20:07 +0100 |
---|---|---|
committer | Chris Withers <chris@simplistix.co.uk> | 2013-05-26 22:20:07 +0100 |
commit | 28276e3eb17eb67178d2fa742a799c693b4d995c (patch) | |
tree | 77338f14caa4e11895d69a8bb207f3c6b9510bae /lib/_range.py | |
parent | b6a9e0ffaf4748d3019b8ab4bbcf9f794e49fc7a (diff) | |
download | psycopg2-28276e3eb17eb67178d2fa742a799c693b4d995c.tar.gz |
cater for comparison of subclasses
Diffstat (limited to 'lib/_range.py')
-rw-r--r-- | lib/_range.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_range.py b/lib/_range.py index 16b51a5..0f15990 100644 --- a/lib/_range.py +++ b/lib/_range.py @@ -121,7 +121,7 @@ class Range(object): return self._bounds is not None def __eq__(self, other): - if not isinstance(other, self.__class__): + if not isinstance(other, Range): return False return (self._lower == other._lower and self._upper == other._upper |