Skip to content

Commit 8c9d99f

Browse files
committed
Issue #27407: Make PCbuild/prepare_ssl.py Python 2 compatible
1 parent bdddb11 commit 8c9d99f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

PCbuild/prepare_ssl.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
# it should configure OpenSSL such that it is ready to be built by
1919
# ssl.vcxproj on 32 or 64 bit platforms.
2020

21+
from __future__ import print_function
22+
2123
import os
2224
import re
2325
import sys
@@ -89,7 +91,10 @@ def create_asms(makefile, tmp_d):
8991

9092
def copy_includes(makefile, suffix):
9193
dir = 'include'+suffix+'\\openssl'
92-
os.makedirs(dir, exist_ok=True)
94+
try:
95+
os.makedirs(dir)
96+
except OSError:
97+
pass
9398
copy_if_different = r'$(PERL) $(SRC_D)\util\copy-if-different.pl'
9499
with open(makefile) as fin:
95100
for line in fin:

0 commit comments

Comments
 (0)