Fix Pylint: W0613(unused-argument)

This commit is contained in:
stv
2015-02-16 04:12:31 -08:00
parent 416f7090b1
commit 2e1400f842
9 changed files with 13 additions and 13 deletions

View File

@@ -96,7 +96,7 @@ def has_access(user, action, obj, course_key=None):
return _has_access_location(user, action, obj, course_key)
if isinstance(obj, basestring):
return _has_access_string(user, action, obj, course_key)
return _has_access_string(user, action, obj)
# Passing an unknown object here is a coding error, so rather than
# returning a default, complain.
@@ -487,7 +487,7 @@ def _has_access_course_key(user, action, course_key):
return _dispatch(checkers, action, user, course_key)
def _has_access_string(user, action, perm, course_key):
def _has_access_string(user, action, perm):
"""
Check if user has certain special access, specified as string. Valid strings: