]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
bintray.py: fix error for jessie
authorJaroslav Kysela <perex@perex.cz>
Fri, 21 Apr 2017 06:57:33 +0000 (08:57 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 21 Apr 2017 06:57:33 +0000 (08:57 +0200)
support/bintray.py

index a214236136d13fccaabcf94601449c982add85eb..ede4e07a6707686ce9507c813bad0972f6cf8e7e 100755 (executable)
@@ -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))