diff options
Diffstat (limited to 'redis/connection.py')
-rw-r--r-- | redis/connection.py | 2 |
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 |