Commit 90624ac4 by Sarina Canelake

s/pylint: disable=R0915/pylint: disable=too-many-statements/

parent e15d4aea
...@@ -65,7 +65,7 @@ def cmd_log(cmd, cwd): ...@@ -65,7 +65,7 @@ def cmd_log(cmd, cwd):
def export_to_git(course_id, repo, user='', rdir=None): def export_to_git(course_id, repo, user='', rdir=None):
"""Export a course to git.""" """Export a course to git."""
# pylint: disable=R0915 # pylint: disable=too-many-statements
if not GIT_REPO_EXPORT_DIR: if not GIT_REPO_EXPORT_DIR:
raise GitExportError(GitExportError.NO_EXPORT_DIR) raise GitExportError(GitExportError.NO_EXPORT_DIR)
......
...@@ -124,7 +124,7 @@ def add_repo(repo, rdir_in, branch=None): ...@@ -124,7 +124,7 @@ def add_repo(repo, rdir_in, branch=None):
If branch is left as None, it will fetch the most recent If branch is left as None, it will fetch the most recent
version of the current branch. version of the current branch.
""" """
# pylint: disable=R0915 # pylint: disable=too-many-statements
# Set defaults even if it isn't defined in settings # Set defaults even if it isn't defined in settings
mongo_db = { mongo_db = {
......
...@@ -228,7 +228,7 @@ COUNTRY_INDEX = 3 ...@@ -228,7 +228,7 @@ COUNTRY_INDEX = 3
@ensure_csrf_cookie @ensure_csrf_cookie
@cache_control(no_cache=True, no_store=True, must_revalidate=True) @cache_control(no_cache=True, no_store=True, must_revalidate=True)
@require_level('staff') @require_level('staff')
def register_and_enroll_students(request, course_id): # pylint: disable=R0915 def register_and_enroll_students(request, course_id): # pylint: disable=too-many-statements
""" """
Create new account and Enroll students in this course. Create new account and Enroll students in this course.
Passing a csv file that contains a list of students. Passing a csv file that contains a list of students.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment