Fix PEP8: E226 missing whitespace around arithmetic operator
This commit is contained in:
@@ -773,7 +773,7 @@ oauth_consumer_key="", oauth_signature="frVp4JuvT1mVXlxktiAUjQ7%2F1cw%3D"'}
|
||||
imsx_messageIdentifier = root.xpath("//def:imsx_messageIdentifier", namespaces=namespaces)[0].text or ''
|
||||
sourcedId = root.xpath("//def:sourcedId", namespaces=namespaces)[0].text
|
||||
score = root.xpath("//def:textString", namespaces=namespaces)[0].text
|
||||
action = root.xpath("//def:imsx_POXBody", namespaces=namespaces)[0].getchildren()[0].tag.replace('{'+lti_spec_namespace+'}', '')
|
||||
action = root.xpath("//def:imsx_POXBody", namespaces=namespaces)[0].getchildren()[0].tag.replace('{' + lti_spec_namespace + '}', '')
|
||||
# Raise exception if score is not float or not in range 0.0-1.0 regarding spec.
|
||||
score = float(score)
|
||||
if not 0 <= score <= 1:
|
||||
|
||||
@@ -41,7 +41,7 @@ class AnnotationComponentPage(PageObject):
|
||||
Return css selector for current active problem with sub_selector.
|
||||
"""
|
||||
return 'div[data-problem-id="{}"] {}'.format(
|
||||
self.q(css='.vert-{}'.format(self.active_problem+1)).map(
|
||||
self.q(css='.vert-{}'.format(self.active_problem + 1)).map(
|
||||
lambda el: el.get_attribute('data-id')).results[0],
|
||||
sub_selector,
|
||||
)
|
||||
|
||||
@@ -3,4 +3,4 @@ def seventeen():
|
||||
|
||||
|
||||
def fortytwo(x):
|
||||
return 42+x
|
||||
return 42 + x
|
||||
|
||||
Reference in New Issue
Block a user