diff options
author | James Arthur <thruflo@gmail.com> | 2013-04-19 10:56:43 +0100 |
---|---|---|
committer | James Arthur <thruflo@gmail.com> | 2013-04-19 10:56:43 +0100 |
commit | dc579672557173303560fbafd76f41921cbdd821 (patch) | |
tree | 94a972db03e3e7e7761aa336a9c05a769f2aec5e /redis | |
parent | 1b2c098b9c5cf2f79bb3ac232b82db49821f091a (diff) | |
download | redis-py-dc579672557173303560fbafd76f41921cbdd821.tar.gz |
connection: fix py3 syntax bug.
Diffstat (limited to 'redis')
-rw-r--r-- | redis/connection.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/connection.py b/redis/connection.py index 5a86c0e..ccfedf6 100644 --- a/redis/connection.py +++ b/redis/connection.py @@ -475,8 +475,8 @@ class BlockingConnectionPool(object): # algorithm we use, it must be a positive integer. is_valid = isinstance(max_connections, int) and max_connections > 0 if not is_valid: - raise ValueError, '``max_connections`` must be a positive integer' - + raise ValueError('``max_connections`` must be a positive integer') + # Get the current process id, so we can disconnect and reinstantiate if # it changes. self.pid = os.getpid() |