fix: fix new pylint warnings (#28725)

This commit is contained in:
Usama Sadiq
2021-09-23 17:54:15 +05:00
committed by GitHub
parent 484cd536e2
commit 023f4144ab
17 changed files with 23 additions and 23 deletions

View File

@@ -173,7 +173,7 @@ def toc_for_course(user, request, course, active_chapter, active_section, field_
if course_module is None:
return None, None, None
toc_chapters = list()
toc_chapters = []
chapters = course_module.get_display_items()
# Check for content which needs to be completed
@@ -201,7 +201,7 @@ def toc_for_course(user, request, course, active_chapter, active_section, field_
if chapter.hide_from_toc or local_hide_from_toc:
continue
sections = list()
sections = []
for section in chapter.get_display_items():
# skip the section if it is hidden from the user
if section.hide_from_toc: