diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2014-05-07 00:29:04 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2014-05-07 00:29:04 -0700 |
commit | b1d383bdadece4610b87273146ac322c2e2bce0c (patch) | |
tree | 5178d5b0247877f823bc2a551343ba6923610f34 /redis/connection.py | |
parent | e6c151490bbf883758423f8385dcf5688f0ed4eb (diff) | |
download | redis-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.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 |