Skip to content

Commit 0facedd

Browse files
[imports checker] Fix deprecation warning from astroid 2.15.0
1 parent 43e7497 commit 0facedd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylint/checkers/imports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ def _add_imported_module(self, node: ImportNode, importedmodname: str) -> None:
891891
if context_name == importedmodname:
892892
self.add_message("import-self", node=node)
893893

894-
elif not astroid.modutils.is_standard_module(importedmodname):
894+
elif not astroid.modutils.is_stdlib_module(importedmodname):
895895
# if this is not a package __init__ module
896896
if base != "__init__" and context_name not in self._module_pkg:
897897
# record the module's parent, or the module itself if this is

0 commit comments

Comments
 (0)