Fix PEP8: E125 continuation line
does not distinguish itself from next logical line
This commit is contained in:
@@ -694,7 +694,7 @@ class LoncapaProblem(object):
|
||||
return
|
||||
|
||||
if (problemtree.tag == 'script' and problemtree.get('type')
|
||||
and 'javascript' in problemtree.get('type')):
|
||||
and 'javascript' in problemtree.get('type')):
|
||||
# leave javascript intact.
|
||||
return deepcopy(problemtree)
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ class PositionsCompare(list):
|
||||
return False
|
||||
|
||||
if (isinstance(self[0], (list, int, float)) and
|
||||
isinstance(other[0], (list, int, float))):
|
||||
isinstance(other[0], (list, int, float))):
|
||||
return self.coordinate_positions_compare(other)
|
||||
|
||||
elif (isinstance(self[0], (unicode, str)) and
|
||||
|
||||
@@ -39,7 +39,7 @@ def make_error_tracker():
|
||||
|
||||
# don't display irrelevant gunicorn sync error
|
||||
if (('python2.7/site-packages/gunicorn/workers/sync.py' in exc_str) and
|
||||
('[Errno 11] Resource temporarily unavailable' in exc_str)):
|
||||
('[Errno 11] Resource temporarily unavailable' in exc_str)):
|
||||
exc_str = ''
|
||||
|
||||
errors.append((msg, exc_str))
|
||||
|
||||
@@ -202,7 +202,7 @@ class XModuleMixin(XBlockMixin):
|
||||
# an XModule context, not an XModuleDescriptor context,
|
||||
# so we should use the xmodule_runtime (ModuleSystem) as the runtime.
|
||||
if (not isinstance(self, (XModule, XModuleDescriptor)) and
|
||||
self.xmodule_runtime is not None):
|
||||
self.xmodule_runtime is not None):
|
||||
return PureSystem(self.xmodule_runtime, self._runtime)
|
||||
else:
|
||||
return self._runtime
|
||||
|
||||
Reference in New Issue
Block a user