Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
2ce5a6ce
Commit
2ce5a6ce
authored
Nov 08, 2014
by
stv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PEP8: E125 continuation line
does not distinguish itself from next logical line
parent
aba9b3b9
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
7 deletions
+7
-7
common/lib/capa/capa/capa_problem.py
+1
-1
common/lib/sandbox-packages/verifiers/draganddrop.py
+1
-1
common/lib/xmodule/xmodule/errortracker.py
+1
-1
common/lib/xmodule/xmodule/x_module.py
+1
-1
common/xml_cleanup.py
+1
-1
lms/djangoapps/courseware/access.py
+1
-1
lms/djangoapps/open_ended_grading/open_ended_notifications.py
+1
-1
No files found.
common/lib/capa/capa/capa_problem.py
View file @
2ce5a6ce
...
...
@@ -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
)
...
...
common/lib/sandbox-packages/verifiers/draganddrop.py
View file @
2ce5a6ce
...
...
@@ -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
...
...
common/lib/xmodule/xmodule/errortracker.py
View file @
2ce5a6ce
...
...
@@ -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
))
...
...
common/lib/xmodule/xmodule/x_module.py
View file @
2ce5a6ce
...
...
@@ -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
...
...
common/xml_cleanup.py
View file @
2ce5a6ce
...
...
@@ -76,7 +76,7 @@ def cleanup(filepath, remove_meta):
print
"WARNING: {0} has both slug and url_name"
.
format
(
node
)
if
(
'url_name'
in
attrs
and
'filename'
in
attrs
and
len
(
attrs
)
==
2
and
attrs
[
'url_name'
]
==
attrs
[
'filename'
]):
len
(
attrs
)
==
2
and
attrs
[
'url_name'
]
==
attrs
[
'filename'
]):
# This is a pointer tag in disguise. Get rid of the filename.
print
'turning {0}.{1} into a pointer tag'
.
format
(
node
.
tag
,
attrs
[
'url_name'
])
del
attrs
[
'filename'
]
...
...
lms/djangoapps/courseware/access.py
View file @
2ce5a6ce
...
...
@@ -154,7 +154,7 @@ def _has_access_course_desc(user, action, course):
# if using registration method to restrict (say shibboleth)
if
settings
.
FEATURES
.
get
(
'RESTRICT_ENROLL_BY_REG_METHOD'
)
and
course
.
enrollment_domain
:
if
user
is
not
None
and
user
.
is_authenticated
()
and
\
ExternalAuthMap
.
objects
.
filter
(
user
=
user
,
external_domain
=
course
.
enrollment_domain
):
ExternalAuthMap
.
objects
.
filter
(
user
=
user
,
external_domain
=
course
.
enrollment_domain
):
debug
(
"Allow: external_auth of "
+
course
.
enrollment_domain
)
reg_method_ok
=
True
else
:
...
...
lms/djangoapps/open_ended_grading/open_ended_notifications.py
View file @
2ce5a6ce
...
...
@@ -162,7 +162,7 @@ def combined_notifications(course, user):
last_time_viewed
)
if
notifications
.
get
(
'success'
):
if
(
notifications
.
get
(
'staff_needs_to_grade'
)
or
notifications
.
get
(
'student_needs_to_peer_grade'
)):
notifications
.
get
(
'student_needs_to_peer_grade'
)):
pending_grading
=
True
except
:
#Non catastrophic error, so no real action
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment