From 1794838a8c8348995d5f0dfbc552374909e8c5e8 Mon Sep 17 00:00:00 2001 From: Rafael Sierra Date: Mon, 4 Mar 2019 13:57:38 +0100 Subject: [PATCH] Pushing docs towards Python 3 --- consul/base.py | 4 ++-- docs/index.rst | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/consul/base.py b/consul/base.py index ee6ab254..08735d25 100755 --- a/consul/base.py +++ b/consul/base.py @@ -510,7 +510,7 @@ def get( "LockIndex": 200, "Key": "foo", "Flags": 0, - "Value": "bar", + "Value": b"bar", "Session": "adf4238a-882b-9ddc-4a9d-5b6758e4159e" } @@ -680,7 +680,7 @@ def put(self, payload): "KV": { "Verb": "", "Key": "", - "Value": "", + "Value": b"", "Flags": 0, "Index": 0, "Session": "" diff --git a/docs/index.rst b/docs/index.rst index cff19c19..cce5f7b4 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -25,7 +25,7 @@ creating server components - but it does serve as a base. It makes use of the >>> index, data = c.kv.get('foo') >>> data['Value'] - 'bar' + b'bar' # this will block until there's an update or a timeout >>> index, data = c.kv.get('foo', index=index)