Remove unnecessary pylint: disable comment

This commit is contained in:
Kristóf Tóth 2019-09-02 16:25:04 +02:00
parent fab582505f
commit 777dc9ccfc
1 changed files with 1 additions and 1 deletions

View File

@ -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