diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2016-09-05 17:54:08 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2016-09-05 17:54:08 (GMT) |
commit | 8c9d99ff2227d7a069b29f26004f33d65a1df177 (patch) | |
tree | 127ce8602d36d8025ac6dcb04c72196390373d17 /PCbuild | |
parent | bdddb11b0efd438696b5fa3e75f323248c22af7d (diff) | |
download | cpython-8c9d99ff2227d7a069b29f26004f33d65a1df177.zip cpython-8c9d99ff2227d7a069b29f26004f33d65a1df177.tar.gz cpython-8c9d99ff2227d7a069b29f26004f33d65a1df177.tar.bz2 |
Issue #27407: Make PCbuild/prepare_ssl.py Python 2 compatible
Diffstat (limited to 'PCbuild')
-rw-r--r-- | PCbuild/prepare_ssl.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/PCbuild/prepare_ssl.py b/PCbuild/prepare_ssl.py index f6170f5..d746976 100644 --- a/PCbuild/prepare_ssl.py +++ b/PCbuild/prepare_ssl.py @@ -18,6 +18,8 @@ # it should configure OpenSSL such that it is ready to be built by # ssl.vcxproj on 32 or 64 bit platforms. +from __future__ import print_function + import os import re import sys @@ -89,7 +91,10 @@ def create_asms(makefile, tmp_d): def copy_includes(makefile, suffix): dir = 'include'+suffix+'\\openssl' - os.makedirs(dir, exist_ok=True) + try: + os.makedirs(dir) + except OSError: + pass copy_if_different = r'$(PERL) $(SRC_D)\util\copy-if-different.pl' with open(makefile) as fin: for line in fin: |