mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 13:01:32 +00:00
Remove unnecessary pylint: disable comment
This commit is contained in:
parent
fab582505f
commit
777dc9ccfc
@ -7,7 +7,7 @@ from os.path import dirname, isdir, isfile, realpath
|
|||||||
def _with_is_allowed(func):
|
def _with_is_allowed(func):
|
||||||
@wraps(func)
|
@wraps(func)
|
||||||
def wrapper(self, *args, **kwargs):
|
def wrapper(self, *args, **kwargs):
|
||||||
if self.is_allowed(args[0]): # pylint: disable=protected-access
|
if self.is_allowed(args[0]):
|
||||||
return func(self, *args, **kwargs)
|
return func(self, *args, **kwargs)
|
||||||
raise ValueError('Forbidden path.')
|
raise ValueError('Forbidden path.')
|
||||||
return wrapper
|
return wrapper
|
||||||
|
Loading…
Reference in New Issue
Block a user