diff options
Diffstat (limited to 'redis/connection.py')
-rwxr-xr-x | redis/connection.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/redis/connection.py b/redis/connection.py index feea041..44a9922 100755 --- a/redis/connection.py +++ b/redis/connection.py @@ -1044,6 +1044,12 @@ class ConnectionPool(object): repr(self.connection_class(**self.connection_kwargs)), ) + def __eq__(self, other): + return ( + isinstance(other, self.__class__) + and self.connection_kwargs == other.connection_kwargs + ) + def reset(self): self.pid = os.getpid() self._created_connections = 0 |