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
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -110,7 +110,7 @@ class ReUpload(Command): # {{{
# Data {{{ # Data {{{
def get_github_data(): def get_github_data():
with open(os.environ['PENV'] + '/github-token', 'rb') as f: 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} return {'username': un, 'password': pw}