summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClemens Stolle <klaemo@fastmail.fm>2019-02-07 06:54:19 +0100
committerJoan Touzet <wohali@users.noreply.github.com>2019-02-07 00:54:19 -0500
commite702598c4f2c528a9b867a9989d814cb9f6d8311 (patch)
treeba64b90a389a0b1cc4acb4802e9448c19f9f961a
parentc54ffcfe00776428381e0d31f2520601380a3b73 (diff)
downloadcouchdb-e702598c4f2c528a9b867a9989d814cb9f6d8311.tar.gz
fix couchup for python3 (#1905)
-rwxr-xr-xrel/overlay/bin/couchup4
1 files changed, 3 insertions, 1 deletions
diff --git a/rel/overlay/bin/couchup b/rel/overlay/bin/couchup
index 4f03759b2..52d746c2d 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