Fix PEP8: E125 continuation line

does not distinguish itself from next logical line
This commit is contained in:
stv
2014-11-08 18:13:29 -08:00
parent aba9b3b96e
commit 2ce5a6ceed
7 changed files with 7 additions and 7 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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))

View File

@@ -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