py3 compat for upload to github

This commit is contained in:
Kovid Goyal
2020-09-25 09:22:03 +05:30
parent 135bfcbefe
commit bb3a1f700d
+1 -1
View File
@@ -110,7 +110,7 @@ class ReUpload(Command): # {{{
# Data {{{
def get_github_data():
with open(os.environ['PENV'] + '/github-token', 'rb') as f:
un, pw = f.read().strip().split(':')
un, pw = f.read().decode('utf-8').strip().split(':')
return {'username': un, 'password': pw}