summaryrefslogtreecommitdiff
path: root/redis/connection.py
diff options
context:
space:
mode:
authorJames Arthur <thruflo@gmail.com>2013-04-19 10:56:43 +0100
committerJames Arthur <thruflo@gmail.com>2013-04-19 10:56:43 +0100
commitdc579672557173303560fbafd76f41921cbdd821 (patch)
tree94a972db03e3e7e7761aa336a9c05a769f2aec5e /redis/connection.py
parent1b2c098b9c5cf2f79bb3ac232b82db49821f091a (diff)
downloadredis-py-dc579672557173303560fbafd76f41921cbdd821.tar.gz
connection: fix py3 syntax bug.
Diffstat (limited to 'redis/connection.py')
-rw-r--r--redis/connection.py4
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()