Skip to content

Commit b7ee725

Browse files
committed
Apply isort. Ref #240
1 parent 32e5fea commit b7ee725

11 files changed

+12
-17
lines changed

distutils/ccompiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
)
2323
from .file_util import move_file
2424
from .spawn import spawn
25-
from .util import execute, split_quoted, is_mingw
25+
from .util import execute, is_mingw, split_quoted
2626

2727

2828
class CCompiler:

distutils/command/install_data.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
import functools
1111
import os
12-
1312
from typing import Iterable
1413

1514
from ..core import Command

distutils/spawn.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import subprocess
1313
import sys
1414
import warnings
15-
1615
from typing import Mapping
1716

1817
from ._log import log

distutils/tests/test_archive_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
from distutils.spawn import spawn
1919
from distutils.tests import support
2020
from os.path import splitdrive
21-
from test.support import patch
2221

2322
import path
2423
import pytest
24+
from test.support import patch
2525

2626
from .compat.py38 import check_warnings
2727
from .unix_compat import UID_0_SUPPORT, grp, pwd, require_uid_0, require_unix_id

distutils/tests/test_build.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
import sys
55
from distutils.command.build import build
66
from distutils.tests import support
7-
from sysconfig import get_config_var
8-
from sysconfig import get_platform
7+
from sysconfig import get_config_var, get_platform
98

109

1110
class TestBuild(support.TempdirManager):

distutils/tests/test_build_ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
fixup_build_ext,
2626
)
2727
from io import StringIO
28-
from test import support
2928

3029
import jaraco.path
3130
import path
3231
import pytest
32+
from test import support
3333

3434
from .compat import py38 as import_helper
3535

distutils/tests/test_extension.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import os
44
import pathlib
55
import warnings
6-
76
from distutils.extension import Extension, read_setup_file
87

98
import pytest

distutils/tests/test_install_data.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
import os
44
import pathlib
5-
6-
import pytest
7-
85
from distutils.command.install_data import install_data
96
from distutils.tests import support
107

8+
import pytest
9+
1110

1211
@pytest.mark.usefixtures('save_env')
1312
class TestInstallData(

distutils/tests/test_mingwccompiler.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import pytest
2-
3-
from distutils.util import split_quoted, is_mingw
4-
from distutils.errors import DistutilsPlatformError, CCompilerError
51
from distutils import sysconfig
2+
from distutils.errors import CCompilerError, DistutilsPlatformError
3+
from distutils.util import is_mingw, split_quoted
4+
5+
import pytest
66

77

88
class TestMingw32CCompiler:

distutils/tests/test_spawn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
from distutils.errors import DistutilsExecError
88
from distutils.spawn import find_executable, spawn
99
from distutils.tests import support
10-
from test.support import unix_shell
1110

1211
import path
1312
import pytest
13+
from test.support import unix_shell
1414

1515
from .compat import py38 as os_helper
1616

distutils/tests/test_sysconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
from distutils import sysconfig
1010
from distutils.ccompiler import new_compiler # noqa: F401
1111
from distutils.unixccompiler import UnixCCompiler
12-
from test.support import swap_item
1312

1413
import jaraco.envs
1514
import path
1615
import pytest
1716
from jaraco.text import trim
17+
from test.support import swap_item
1818

1919

2020
def _gen_makefile(root, contents):

0 commit comments

Comments
 (0)