https://github.com/python/cpython/commit/2904ec2273762df58645a8e245b2281884855b8c
commit: 2904ec2273762df58645a8e245b2281884855b8c
branch: main
author: Burkov Egor <ebur...@rvision.ru>
committer: zooba <steve.do...@microsoft.com>
date: 2025-03-05T17:08:30Z
summary:

gh-130878: Add extra check to prepare_ssl.py (GH-130879)

files:
M PCbuild/prepare_ssl.py

diff --git a/PCbuild/prepare_ssl.py b/PCbuild/prepare_ssl.py
index 0f3c63ee24ffba..0461167e0d2cd6 100755
--- a/PCbuild/prepare_ssl.py
+++ b/PCbuild/prepare_ssl.py
@@ -70,7 +70,8 @@ def copy_includes(makefile, suffix):
     try:
         os.makedirs(dir)
     except OSError:
-        pass
+        if not os.path.isdir(dir):
+            raise
     copy_if_different = r'$(PERL) $(SRC_D)\util\copy-if-different.pl'
     with open(makefile) as fin:
         for line in fin:

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to