Skip to content

Commit

Permalink
[Fix] Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
HAOCHENYE committed Oct 25, 2024
1 parent 3d808c1 commit 0a1dd07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mmengine/config/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ def _is_builtin_module(module_name: str) -> bool:
return True
if module_name in sys.builtin_module_names:
return True
if sys.version_info >= (3, 10) and module_name in sys.stdlib_module_names():
if sys.version_info >= (
3, 10) and module_name in sys.stdlib_module_names():
return True
spec = find_spec(module_name.split('.')[0])
# Module not found
Expand Down

0 comments on commit 0a1dd07

Please sign in to comment.