From c9a5fffd22e7e9aa5918679c891578d79ed242f0 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Sun, 18 Apr 2021 23:12:03 +0200 Subject: Add isort to the pre-commit configuration --- astroid/modutils.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'astroid') diff --git a/astroid/modutils.py b/astroid/modutils.py index 181891d4..2f0827f0 100644 --- a/astroid/modutils.py +++ b/astroid/modutils.py @@ -33,17 +33,19 @@ :type BUILTIN_MODULES: dict :var BUILTIN_MODULES: dictionary with builtin module names has key """ + +# We don't want distutils to be a requirement +# pylint: disable=import-error, no-name-in-module,useless-suppression + import importlib.util import itertools import os import platform import sys - -# pylint: disable=import-error, no-name-in-module from distutils.errors import DistutilsPlatformError from distutils.sysconfig import get_python_lib # pylint: disable=import-error -from .interpreter._import import spec, util +from astroid.interpreter._import import spec, util # distutils is replaced by virtualenv with a module that does # weird path manipulations in order to get to the -- cgit v1.2.1