mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 03:11:09 +00:00
Add a customizable User-Agent (issue #109)
This commit is contained in:
+2
-2
@@ -32,8 +32,8 @@ DEFAULT_TIMEOUT = 10
|
||||
|
||||
|
||||
class Github(object):
|
||||
def __init__(self, login_or_token=None, password=None, base_url=DEFAULT_BASE_URL, timeout=DEFAULT_TIMEOUT, client_id=None, client_secret=None):
|
||||
self.__requester = Requester(login_or_token, password, base_url, timeout, client_id, client_secret)
|
||||
def __init__(self, login_or_token=None, password=None, base_url=DEFAULT_BASE_URL, timeout=DEFAULT_TIMEOUT, client_id=None, client_secret=None, user_agent=None):
|
||||
self.__requester = Requester(login_or_token, password, base_url, timeout, client_id, client_secret, user_agent)
|
||||
|
||||
def get_FIX_REPO_GET_GIT_REF(self):
|
||||
return self.__requester.FIX_REPO_GET_GIT_REF
|
||||
|
||||
Reference in New Issue
Block a user