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

View File

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