Skip to content

Commit 4c2652c

Browse files
committed
Make _pyi_rth_utils Python 3.7 compatible.
sys.audit doesn't exist until Python 3.8.
1 parent 2ecfedf commit 4c2652c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PyInstaller/fake-modules/_pyi_rth_utils/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def secure_mkdtemp(suffix=None, prefix=None, dir=None):
3737
for seq in range(tempfile.TMP_MAX):
3838
name = next(names)
3939
file = os.path.join(dir, prefix + name + suffix)
40-
sys.audit("tempfile.mkdtemp", file)
40+
if sys.version_info >= (3, 8):
41+
sys.audit("tempfile.mkdtemp", file)
4142
try:
4243
_win32.secure_mkdir(file)
4344
except FileExistsError:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy