summaryrefslogtreecommitdiff
path: root/redis/connection.py
diff options
context:
space:
mode:
authorandy <andy@whiskeymedia.com>2013-04-22 21:57:26 -0700
committerandy <andy@whiskeymedia.com>2013-04-22 21:57:26 -0700
commitc968d78bfb3a977ce3b14fab7196f19cec645bdf (patch)
tree23bcba305ba849ac60589b79f804a707b399022d /redis/connection.py
parentb16d00993d61aa53304342256f8280bdae6ca21b (diff)
downloadredis-py-c968d78bfb3a977ce3b14fab7196f19cec645bdf.tar.gz
pep8
Diffstat (limited to 'redis/connection.py')
-rw-r--r--redis/connection.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/redis/connection.py b/redis/connection.py
index ccfedf6..a1520a2 100644
--- a/redis/connection.py
+++ b/redis/connection.py
@@ -476,7 +476,7 @@ class BlockingConnectionPool(object):
is_valid = isinstance(max_connections, int) and max_connections > 0
if not is_valid:
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()
@@ -539,7 +539,7 @@ class BlockingConnectionPool(object):
connection = self.pool.get(block=True, timeout=self.timeout)
except Empty:
# Note that this is not caught by the redis client and will be raised
- # unless handled by application code. If you want never to raise
+ # unless handled by application code. If you want never to raise
raise ConnectionError("No connection available.")
# If the ``connection`` is actually ``None`` then that's a cue to make a
@@ -579,4 +579,3 @@ class BlockingConnectionPool(object):
self.__init__(max_connections=self.max_connections, timeout=self.timeout,
connection_class=self.connection_class,
queue_class=self.queue_class, **self.connection_kwargs)
-