Fix bintray API client

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2018-06-21 11:49:35 -07:00
parent 709ba0975d
commit 47584a37c9
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ class BintrayAPI(requests.Session):
self.base_url = 'https://api.bintray.com/'
def create_repository(self, subject, repo_name, repo_type='generic'):
url = '{base}/repos/{subject}/{repo_name}'.format(
url = '{base}repos/{subject}/{repo_name}'.format(
base=self.base_url, subject=subject, repo_name=repo_name,
)
data = {
@ -30,7 +30,7 @@ class BintrayAPI(requests.Session):
return result
def delete_repository(self, subject, repo_name):
url = '{base}/repos/{subject}/{repo_name}'.format(
url = '{base}repos/{subject}/{repo_name}'.format(
base=self.base_url, subject=subject, repo_name=repo_name,
)
return self.delete(url)