Skip to content

Commit 47ae763

Browse files
committed
Issue python#19629: Add missing "import stat"
Sort also imports in support/__init__.py
1 parent ec86469 commit 47ae763

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

Lib/test/support/__init__.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,29 @@
33
if __name__ != 'test.support':
44
raise ImportError('support must be imported from the test package')
55

6+
import collections.abc
67
import contextlib
78
import errno
9+
import fnmatch
810
import functools
911
import gc
10-
import socket
11-
import sys
12-
import os
13-
import platform
14-
import shutil
15-
import warnings
16-
import unittest
1712
import importlib
1813
import importlib.util
19-
import collections.abc
14+
import logging.handlers
15+
import os
16+
import platform
2017
import re
18+
import shutil
19+
import socket
20+
import stat
21+
import struct
2122
import subprocess
22-
import time
23+
import sys
2324
import sysconfig
24-
import fnmatch
25-
import logging.handlers
26-
import struct
2725
import tempfile
26+
import time
27+
import unittest
28+
import warnings
2829

2930
try:
3031
import _thread, threading

0 commit comments

Comments
 (0)