diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2018-11-01 19:46:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-01 19:46:13 -0700 |
commit | f2c48839a93964479794d642fba0493504ae17c9 (patch) | |
tree | b371f1a49a195ed5b1474154fe8b11113d1b4573 | |
parent | 3c954e55273de8203966d888921e139918da66bb (diff) | |
parent | d8b1fa623e6aac09b5b10d793de9d13562d5570d (diff) | |
download | redis-py-f2c48839a93964479794d642fba0493504ae17c9.tar.gz |
Merge pull request #1032 from jdufresne/https
Prefer https:// for URLs when available
-rw-r--r-- | CHANGES | 6 | ||||
-rw-r--r-- | README.rst | 12 | ||||
-rwxr-xr-x | redis/client.py | 2 | ||||
-rwxr-xr-x | redis/connection.py | 7 | ||||
-rw-r--r-- | setup.py | 2 |
5 files changed, 15 insertions, 14 deletions
@@ -190,7 +190,7 @@ for the report. * Connections now call socket.shutdown() prior to socket.close() to ensure communication ends immediately per the note at - http://docs.python.org/2/library/socket.html#socket.socket.close + https://docs.python.org/2/library/socket.html#socket.socket.close Thanks to David Martin for pointing this out. * Lock checks are now based on floats rather than ints. Thanks Vitja Makarov. @@ -224,11 +224,11 @@ * Prevent DISCARD from being called if MULTI wasn't also called. Thanks Pete Aykroyd. * SREM now returns an integer indicating the number of items removed from - the set. Thanks http://github.com/ronniekk. + the set. Thanks https://github.com/ronniekk. * Fixed a bug with BGSAVE and BGREWRITEAOF response callbacks with Python3. Thanks Nathan Wan. * Added CLIENT GETNAME and CLIENT SETNAME commands. - Thanks http://github.com/bitterb. + Thanks https://github.com/bitterb. * It's now possible to use len() on a pipeline instance to determine the number of commands that will be executed. Thanks Jon Parise. * Fixed a bug in INFO's parse routine with floating point numbers. Thanks @@ -4,7 +4,7 @@ redis-py The Python interface to the Redis key-value store. .. image:: https://secure.travis-ci.org/andymccurdy/redis-py.png?branch=master - :target: http://travis-ci.org/andymccurdy/redis-py + :target: https://travis-ci.org/andymccurdy/redis-py .. image:: https://readthedocs.org/projects/redis-py/badge/?version=latest&style=flat :target: https://redis-py.readthedocs.io/en/latest/ .. image:: https://badge.fury.io/py/redis.svg @@ -14,7 +14,7 @@ Installation ------------ redis-py requires a running Redis server. See `Redis's quickstart -<http://redis.io/topics/quickstart>`_ for installation instructions. +<https://redis.io/topics/quickstart>`_ for installation instructions. To install redis-py, simply: @@ -53,7 +53,7 @@ specified. API Reference ------------- -The `official Redis command documentation <http://redis.io/commands>`_ does a +The `official Redis command documentation <https://redis.io/commands>`_ does a great job of explaining each command in detail. redis-py exposes two client classes that implement these commands. The StrictRedis class attempts to adhere to the official command syntax. There are a few exceptions: @@ -613,7 +613,7 @@ execution. Sentinel support ^^^^^^^^^^^^^^^^ -redis-py can be used together with `Redis Sentinel <http://redis.io/topics/sentinel>`_ +redis-py can be used together with `Redis Sentinel <https://redis.io/topics/sentinel>`_ to discover Redis nodes. You need to have at least one Sentinel daemon running in order to use redis-py's Sentinel support. @@ -654,7 +654,7 @@ If no slaves can be connected to, a connection will be established with the master. See `Guidelines for Redis clients with support for Redis Sentinel -<http://redis.io/topics/sentinel-clients>`_ to learn more about Redis Sentinel. +<https://redis.io/topics/sentinel-clients>`_ to learn more about Redis Sentinel. Scan Iterators ^^^^^^^^^^^^^^ @@ -678,7 +678,7 @@ Author ^^^^^^ redis-py is developed and maintained by Andy McCurdy (sedrik@gmail.com). -It can be found here: http://github.com/andymccurdy/redis-py +It can be found here: https://github.com/andymccurdy/redis-py Special thanks to: diff --git a/redis/client.py b/redis/client.py index b6c0da3..ffa3938 100755 --- a/redis/client.py +++ b/redis/client.py @@ -533,7 +533,7 @@ class StrictRedis(object): """ Return a Redis client object configured from the given URL, which must use either `the ``redis://`` scheme - <http://www.iana.org/assignments/uri-schemes/prov/redis>`_ for RESP + <https://www.iana.org/assignments/uri-schemes/prov/redis>`_ for RESP connections or the ``unix://`` scheme for Unix domain sockets. For example:: 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) @@ -36,7 +36,7 @@ setup( version=__version__, description='Python client for Redis key-value store', long_description=long_description, - url='http://github.com/andymccurdy/redis-py', + url='https://github.com/andymccurdy/redis-py', author='Andy McCurdy', author_email='sedrik@gmail.com', maintainer='Andy McCurdy', |