diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2020-04-13 11:01:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-13 11:01:14 -0700 |
commit | 5fa3fe5bb6fefb88a15cfb58462c1cf031b62d0f (patch) | |
tree | 79cf9dbea8066714e8c952bfc247776ea7d4108f /redis/sentinel.py | |
parent | 76eebce9d2cf8903d0b4f0dc9bcb38487686abb5 (diff) | |
download | redis-py-5fa3fe5bb6fefb88a15cfb58462c1cf031b62d0f.tar.gz |
Prefer Python 3 syntax in examples (#1325)
As Python 3 is the future of the language, when the docs need to make a
syntax choice, use the Python 3 version.
Diffstat (limited to 'redis/sentinel.py')
-rw-r--r-- | redis/sentinel.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/sentinel.py b/redis/sentinel.py index 11263d2..ac5bf44 100644 --- a/redis/sentinel.py +++ b/redis/sentinel.py @@ -135,7 +135,7 @@ class Sentinel(object): >>> master.set('foo', 'bar') >>> slave = sentinel.slave_for('mymaster', socket_timeout=0.1) >>> slave.get('foo') - 'bar' + b'bar' ``sentinels`` is a list of sentinel nodes. Each node is represented by a pair (hostname, port). |