File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 5
5
6
6
import contextlib
7
7
import errno
8
- import fnmatch
9
8
import functools
10
- import glob
11
9
import os
12
10
import re
13
11
import stat
14
- import struct
15
12
import sys
16
13
import sysconfig
17
14
import time
@@ -846,9 +843,11 @@ def python_is_optimized():
846
843
_vheader = _header + 'n'
847
844
848
845
def calcobjsize (fmt ):
846
+ import struct
849
847
return struct .calcsize (_header + fmt + _align )
850
848
851
849
def calcvobjsize (fmt ):
850
+ import struct
852
851
return struct .calcsize (_vheader + fmt + _align )
853
852
854
853
@@ -1255,6 +1254,7 @@ def _compile_match_function(patterns):
1255
1254
# The test.bisect_cmd utility only uses such full test identifiers.
1256
1255
func = set (patterns ).__contains__
1257
1256
else :
1257
+ import fnmatch
1258
1258
regex = '|' .join (map (fnmatch .translate , patterns ))
1259
1259
# The search *is* case sensitive on purpose:
1260
1260
# don't use flags=re.IGNORECASE
@@ -1534,6 +1534,7 @@ def _platform_specific(self):
1534
1534
1535
1535
if sys .platform == "win32" :
1536
1536
def _platform_specific (self ):
1537
+ import glob
1537
1538
import _winapi
1538
1539
1539
1540
if os .path .lexists (self .real ) and not os .path .exists (self .real ):
You can’t perform that action at this time.
0 commit comments