Commit 823412b8 authored by Sigmund Augdal's avatar Sigmund Augdal

Break some long lines

parent 9d240305
...@@ -72,7 +72,8 @@ class Client(object): ...@@ -72,7 +72,8 @@ class Client(object):
self.session = requests.Session() self.session = requests.Session()
self.subscription = subscription self.subscription = subscription
def _format_url(self, resource, query=None, args=None, subresource=None, expand=None): def _format_url(self, resource, query=None, args=None, subresource=None,
expand=None):
url = self.baseurl url = self.baseurl
if self.subscription: if self.subscription:
url += "/" + self.subscription url += "/" + self.subscription
...@@ -98,7 +99,8 @@ class Client(object): ...@@ -98,7 +99,8 @@ class Client(object):
headers = {} headers = {}
if reqdata: if reqdata:
headers["content-type"] = "application/atom+xml;type=entry" headers["content-type"] = "application/atom+xml;type=entry"
resp = self.session.request(method, url, data=reqdata, headers=headers, auth=self.auth, verify=False) resp = self.session.request(method, url, data=reqdata, headers=headers,
auth=self.auth, verify=False)
data = resp.content data = resp.content
if not data: if not data:
return None return None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment