mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
py3 compat for upload to github
This commit is contained in:
parent
135bfcbefe
commit
bb3a1f700d
@ -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}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user