Commit 37b70324 authored by Laurent Bachelier's avatar Laurent Bachelier 🐧 Committed by Romain Bignon

Some space fixes

parent f8b1db92
......@@ -394,7 +394,6 @@ class Browser(object):
# in case we did not catch something that should be
response.raise_for_status()
def build_request(self, url, referrer=None, data_encoding=None, **kwargs):
"""
Does the same job as open(), but returns a Request without
......@@ -1021,7 +1020,7 @@ class OAuth2Mixin(StatesMixin):
}
def do_token_request(self, data):
return self.open(self.ACCESS_TOKEN_URI, data=data)
return self.open(self.ACCESS_TOKEN_URI, data=data)
def request_access_token(self, auth_uri):
if isinstance(auth_uri, dict):
......@@ -1054,6 +1053,7 @@ class OAuth2Mixin(StatesMixin):
self.access_token = auth_response['access_token']
self.access_token_expire = datetime.now() + timedelta(seconds=int(auth_response['expires_in']))
class OAuth2PKCEMixin(OAuth2Mixin):
def __init__(self, *args, **kwargs):
super(OAuth2PKCEMixin, self).__init__(*args, **kwargs)
......
......@@ -244,7 +244,7 @@ class TableCell(_Filter):
if not ret:
# There might no be no TD at all
# ColumnNotFound seems for case when corresponding header is not found
# Thus for compat return empty
# Thus for compat return empty
return []
current_col += int(ret[0].attrib.get('colspan', 1))
......
......@@ -55,7 +55,7 @@ def video_info(url):
v.description = unicode(j.get('description')) if j.get('description') else NotAvailable
v.url = unicode(j['url'])
v.duration = timedelta(seconds=j.get('duration')) if j.get('duration') else NotAvailable
v.author = unicode(j.get('uploader')) if j.get('uploader') else NotAvailable
v.author = unicode(j.get('uploader')) if j.get('uploader') else NotAvailable
v.rating = j.get('average_rating') or NotAvailable
if j.get('thumbnail'):
......
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