Skip to content

Commit

Permalink
Remove a duplicate method
Browse files Browse the repository at this point in the history
  • Loading branch information
juhtornr committed Sep 24, 2018
1 parent a692650 commit 1cac35c
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions tes/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,6 @@ def create_task(self, task):
raise_for_status(response)
return unmarshal(response.json(), CreateTaskResponse).id

def request_params(self, data=None, params=None):
kwargs = {'timeout': self.timeout}

if data:
kwargs['data'] = data
if params:
kwargs['params'] = params
if self.token:
kwargs['headers'] = {'Content-type': 'application/json',
'Authorization': 'Bearer ' + self.token}
else:
kwargs['headers'] = {'Content-type': 'application/json'}
kwargs['auth'] = (self.user, self.password)

return kwargs

def get_task(self, task_id, view="BASIC"):
req = GetTaskRequest(task_id, view)
payload = {"view": req.view}
Expand Down

0 comments on commit 1cac35c

Please sign in to comment.