summaryrefslogtreecommitdiff
path: root/redis/connection.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-09-22 21:29:01 -0700
committerJon Dufresne <jon.dufresne@gmail.com>2018-11-01 18:06:20 -0700
commitd8b1fa623e6aac09b5b10d793de9d13562d5570d (patch)
tree2464cfe7bc99219ea07f64ec9bb1b1c77b3b134b /redis/connection.py
parente4b3ddd630944fd20ed54e06355165fff2dda0a0 (diff)
downloadredis-py-d8b1fa623e6aac09b5b10d793de9d13562d5570d.tar.gz
Prefer https:// for URLs when available
Diffstat (limited to 'redis/connection.py')
-rwxr-xr-xredis/connection.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/redis/connection.py b/redis/connection.py
index 1190260..9893191 100755
--- a/redis/connection.py
+++ b/redis/connection.py
@@ -799,11 +799,11 @@ class ConnectionPool(object):
Three URL schemes are supported:
- ```redis://``
- <http://www.iana.org/assignments/uri-schemes/prov/redis>`_ creates a
+ <https://www.iana.org/assignments/uri-schemes/prov/redis>`_ creates a
normal TCP socket connection
- ```rediss://``
- <http://www.iana.org/assignments/uri-schemes/prov/rediss>`_ creates a
- SSL wrapped TCP socket connection
+ <https://www.iana.org/assignments/uri-schemes/prov/rediss>`_ creates
+ a SSL wrapped TCP socket connection
- ``unix://`` creates a Unix Domain Socket connection
There are several ways to specify a database number. The parse function
@@ -829,6 +829,7 @@ class ConnectionPool(object):
True/False, Yes/No values to indicate state. Invalid types cause a
``UserWarning`` to be raised. In the case of conflicting arguments,
querystring arguments always win.
+
"""
url_string = url
url = urlparse(url)