summaryrefslogtreecommitdiff
path: root/redis/connection.py
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2014-05-07 00:29:04 -0700
committerAndy McCurdy <andy@andymccurdy.com>2014-05-07 00:29:04 -0700
commitb1d383bdadece4610b87273146ac322c2e2bce0c (patch)
tree5178d5b0247877f823bc2a551343ba6923610f34 /redis/connection.py
parente6c151490bbf883758423f8385dcf5688f0ed4eb (diff)
downloadredis-py-b1d383bdadece4610b87273146ac322c2e2bce0c.tar.gz
Force `port` to an int in case someone passes it as a string. Fixes #292
Diffstat (limited to 'redis/connection.py')
-rw-r--r--redis/connection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/connection.py b/redis/connection.py
index 692a87a..78b5cf7 100644
--- a/redis/connection.py
+++ b/redis/connection.py
@@ -335,7 +335,7 @@ class Connection(object):
parser_class=DefaultParser, socket_read_size=65536):
self.pid = os.getpid()
self.host = host
- self.port = port
+ self.port = int(port)
self.db = db
self.password = password
self.socket_timeout = socket_timeout