mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Simplify and remove few dependencies on 'errno', thanks to PEP 3151.
This commit is contained in:
parent
908ae24b06
commit
68f71a34f4
5 changed files with 28 additions and 45 deletions
|
@ -166,7 +166,6 @@ option '-uall,-gui'.
|
|||
"""
|
||||
|
||||
import builtins
|
||||
import errno
|
||||
import faulthandler
|
||||
import getopt
|
||||
import io
|
||||
|
@ -1721,9 +1720,8 @@ def _make_temp_dir_for_build(TEMPDIR):
|
|||
TEMPDIR = os.path.abspath(TEMPDIR)
|
||||
try:
|
||||
os.mkdir(TEMPDIR)
|
||||
except OSError as e:
|
||||
if e.errno != errno.EEXIST:
|
||||
raise
|
||||
except FileExistsError:
|
||||
pass
|
||||
|
||||
# Define a writable temp dir that will be used as cwd while running
|
||||
# the tests. The name of the dir includes the pid to allow parallel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue