From: Jaroslav Kysela Date: Fri, 21 Apr 2017 06:57:33 +0000 (+0200) Subject: bintray.py: fix error for jessie X-Git-Tag: v4.2.1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5d5306c21bf94acd798d69cdab49edd169409d3;p=thirdparty%2Ftvheadend.git bintray.py: fix error for jessie --- diff --git a/support/bintray.py b/support/bintray.py index a21423613..ede4e07a6 100755 --- a/support/bintray.py +++ b/support/bintray.py @@ -88,7 +88,7 @@ def info(msg, *args): def do_upload(*args): if len(args) < 2: error(1, 'upload [url] [file]') bpath, file = args[0], args[1] - data = open(file, "br").read() + data = open(file, 'rb').read() resp = Bintray(bpath).put(data, binary=1) if resp.code != 200 and resp.code != 201: error(10, 'HTTP ERROR "%s" %s %s' % (resp.url, resp.code, resp.reason))