Commit 3028a9a5 authored by Jérome Perrin's avatar Jérome Perrin

fixup! fixup! fixup! oauth2_authorisation: py3

parent edcf93e9
......@@ -70,13 +70,12 @@ _HTML_FIELD_TAG_SET = {
# Very incomplete, but enough for this tests' purpose: ignores "select"s...
}
class FormExtractor(HTMLParser):
# pylint:disable=abstract-method
def reset(self):
self.__in_form = False
self.form_list = []
HTMLParser.reset(self)
def handle_starttag(self, tag, attribute_item_list): # pylint:disable=arguments-renamed
def handle_starttag(self, tag, attribute_item_list):
attr_dict = dict(attribute_item_list)
if tag == 'form':
assert not self.__in_form
......@@ -92,6 +91,10 @@ class FormExtractor(HTMLParser):
if tag == 'form':
self.__in_form = False
def error(self, message):
raise ValueError(message)
class TestOAuth2(ERP5TypeTestCase):
# pylint:disable=unused-private-member
__cleanup_list = None
......
......@@ -229,7 +229,7 @@ class _OAuth2AuthorisationServerProxy(object):
Connection = HTTPConnection
if six.PY2:
# Changed in version 3.4: The strict parameter was removed.
# HTTP 0.9-style “Simple Responses” are no longer supported.
# HTTP 0.9-style "Simple Responses" are no longer supported.
Connection = functools.partial(Connection, strict=True)
timeout = getTimeLeft()
if timeout is None or timeout > self._timeout:
......
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