summaryrefslogtreecommitdiff
path: root/redis/connection.py
diff options
context:
space:
mode:
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