mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-12-22 06:51:56 +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):
|
||||
@wraps(func)
|
||||
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)
|
||||
raise ValueError('Forbidden path.')
|
||||
return wrapper
|
||||
|
Loading…
Reference in New Issue
Block a user