fix: fix 'too-many-nested-blocks' for pylint
This commit is contained in:
parent
1dd184622f
commit
deaf1976f3
2 changed files with 2 additions and 3 deletions
|
@ -8,4 +8,3 @@ disable=fixme,
|
|||
duplicate-code,
|
||||
keyword-arg-before-vararg,
|
||||
no-member,
|
||||
too-many-nested-blocks,
|
||||
|
|
|
@ -229,7 +229,7 @@ class MenuHandler(GenericHandler):
|
|||
# that somewhat to produce our final menus
|
||||
self._mark_allowed(request, raw_menus)
|
||||
final_menus = []
|
||||
for topitem in raw_menus:
|
||||
for topitem in raw_menus: # pylint: disable=too-many-nested-blocks
|
||||
|
||||
if topitem["allowed"]:
|
||||
|
||||
|
@ -323,7 +323,7 @@ class MenuHandler(GenericHandler):
|
|||
Traverse the menu set, and mark each item as "allowed" (or
|
||||
not) based on current user permissions.
|
||||
"""
|
||||
for topitem in menus:
|
||||
for topitem in menus: # pylint: disable=too-many-nested-blocks
|
||||
|
||||
if topitem.get("type", "menu") == "link":
|
||||
topitem["allowed"] = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue