mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Use a token for github
This commit is contained in:
parent
9aa4a426e7
commit
edf231e3ff
@ -107,7 +107,7 @@ class ReUpload(Command): # {{{
|
|||||||
|
|
||||||
# Data {{{
|
# Data {{{
|
||||||
def get_github_data():
|
def get_github_data():
|
||||||
with open(os.environ['PENV'] + '/github', 'rb') as f:
|
with open(os.environ['PENV'] + '/github-token', 'rb') as f:
|
||||||
un, pw = f.read().strip().split(':')
|
un, pw = f.read().strip().split(':')
|
||||||
return {'username': un, 'password': pw}
|
return {'username': un, 'password': pw}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user