@classmethod
    def python_api_url(cls, url):
        if url.endswith(config.JENKINS_API):
            return url
        else:
            if url.endswith(r"/"):
                fmt="%s%s"
            else:
                fmt = "%s/%s"
            return fmt % (url, config.JENKINS_API)
dataset/ETHPy150Open ramonvanalteren/jenkinsapi/jenkinsapi/jenkinsbase.py/JenkinsBase.python_api_url/original