Commit fc05f43c authored by Jérome Perrin's avatar Jérome Perrin

pylint: remove part of the pylint patch that are now slapos patches

parent af8d27f6
Pipeline #21358 failed with stage
in 0 seconds
......@@ -272,18 +272,6 @@ def _getattr(self, name, *args, **kw):
return [ast]
Module.getattr = _getattr
if sys.version_info < (2, 8):
from astroid.node_classes import From
def _absolute_import_activated(self):
if (self.name.startswith('checkPythonSourceCode') or
self.name.startswith('erp5')):
return True
for stmt in self.locals.get('absolute_import', ()):
if isinstance(stmt, From) and stmt.modname == '__future__':
return True
return False
from logilab.common.decorators import cachedproperty
Module._absolute_import_activated = cachedproperty(_absolute_import_activated)
from astroid import register_module_extender
def AccessControl_PermissionRole_transform():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment