mirror of
https://github.com/conan-io/conan-center-index.git
synced 2025-08-15 11:08:38 +00:00
(#11948) [linter] Add more checks to migrate import for tools
* [linter] Add more checks to migrate import for tools * add link
This commit is contained in:
@@ -16,8 +16,14 @@ def register(linter: PyLinter):
|
||||
|
||||
def transform_tools(module):
|
||||
""" Transform import module """
|
||||
if 'get' in module.locals:
|
||||
del module.locals['get']
|
||||
if 'cross_building' in module.locals:
|
||||
del module.locals['cross_building']
|
||||
if 'rmdir' in module.locals:
|
||||
del module.locals['rmdir']
|
||||
if 'Version' in module.locals:
|
||||
del module.locals['Version']
|
||||
|
||||
|
||||
astroid.MANAGER.register_transform(
|
||||
|
Reference in New Issue
Block a user