(original) (raw)

changeset: 103049:e0873191ad7d branch: 3.5 parent: 103045:3e4452424f9b user: Zachary Ware zachary.ware@gmail.com date: Mon Sep 05 12:54:08 2016 -0500 files: PCbuild/prepare_ssl.py description: Issue #27407: Make PCbuild/prepare_ssl.py Python 2 compatible diff -r 3e4452424f9b -r e0873191ad7d PCbuild/prepare_ssl.py --- a/PCbuild/prepare_ssl.py Mon Sep 05 10:39:57 2016 -0700 +++ b/PCbuild/prepare_ssl.py Mon Sep 05 12:54:08 2016 -0500 @@ -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 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: /zachary.ware@gmail.com