(self, user="sympy", repo="sympy",
        api_url="https://api.github.com",
        authorize_url="https://api.github.com/authorizations",
        uploads_url='https://uploads.github.com',
        main_url='https://github.com')
Generates all URLs and templates
Generates all URLs and templates
Generates all URLs and templates
def __init__(self, user="sympy", repo="sympy",
        api_url="https://api.github.com",
        authorize_url="https://api.github.com/authorizations",
        uploads_url='https://uploads.github.com',
        main_url='https://github.com'):
        """Generates all URLs and templates"""

        self.user = user
        self.repo = repo
        self.api_url = api_url
        self.authorize_url = authorize_url
        self.uploads_url = uploads_url
        self.main_url = main_url

        self.pull_list_url = api_url + "/repos" + "/" + user + "/" + repo + "/pulls"
        self.issue_list_url = api_url + "/repos/" + user + "/" + repo + "/issues"
        self.releases_url = api_url + "/repos/" + user + "/" + repo + "/releases"
        self.single_issue_template = self.issue_list_url + "/%d"
        self.single_pull_template = self.pull_list_url + "/%d"
        self.user_info_template = api_url + "/users/%s"
        self.user_repos_template = api_url + "/users/%s/repos"
        self.issue_comment_template = (api_url + "/repos" + "/" + user + "/" + repo + "/issues/%d" +
            "/comments")
        self.release_uploads_url = (uploads_url + "/repos/" + user + "/" +
            repo + "/releases/%d" + "/assets")
        self.release_download_url = (main_url + "/" + user + "/" + repo +
            "/releases/download/%s/%s")
def __init__ ( self , user = "sympy" , repo = "sympy" , api_url = "https://api.github.com" , authorize_url = "https://api.github.com/authorizations" , uploads_url = 'https://uploads.github.com' , main_url = 'https://github.com' ) : self . user = user self . repo = repo self . api_url = api_url self . authorize_url = authorize_url self . uploads_url = uploads_url self . main_url = main_url self . pull_list_url = api_url + "/repos" + "/" + user + "/" + repo + "/pulls" self . issue_list_url = api_url + "/repos/" + user + "/" + repo + "/issues" self . releases_url = api_url + "/repos/" + user + "/" + repo + "/releases" self . single_issue_template = self . issue_list_url + "/%d" self . single_pull_template = self . pull_list_url + "/%d" self . user_info_template = api_url + "/users/%s" self . user_repos_template = api_url + "/users/%s/repos" self . issue_comment_template = ( api_url + "/repos" + "/" + user + "/" + repo + "/issues/%d" + "/comments" ) self . release_uploads_url = ( uploads_url + "/repos/" + user + "/" + repo + "/releases/%d" + "/assets" ) self . release_download_url = ( main_url + "/" + user + "/" + repo + "/releases/download/%s/%s" )