You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wo...@apache.org on 2019/02/07 05:54:25 UTC
[couchdb] branch master updated: fix couchup for python3 (#1905)
This is an automated email from the ASF dual-hosted git repository.
wohali pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/master by this push:
new e702598 fix couchup for python3 (#1905)
e702598 is described below
commit e702598c4f2c528a9b867a9989d814cb9f6d8311
Author: Clemens Stolle <kl...@fastmail.fm>
AuthorDate: Thu Feb 7 06:54:19 2019 +0100
fix couchup for python3 (#1905)
---
rel/overlay/bin/couchup | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/rel/overlay/bin/couchup b/rel/overlay/bin/couchup
index 4f03759..52d746c 100755
--- a/rel/overlay/bin/couchup
+++ b/rel/overlay/bin/couchup
@@ -231,7 +231,9 @@ def _replicate(args):
if args["filter_deleted"]:
doc["filter"] = "repl_filters/no_deleted"
if args["creds"]:
- auth = "Basic " + base64.b64encode(":".join(args["creds"]))
+ auth = (
+ "Basic " + base64.b64encode(":".join(args["creds"]).encode()).decode()
+ )
headers = {"authorization": auth}
doc["source"]["headers"] = headers
doc["target"]["headers"] = headers