diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2014-06-02 17:09:13 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2014-06-02 17:09:13 (GMT) |
commit | 90441e857d2f0d0224899a328e89fd8d694e45ef (patch) | |
tree | 61b2aff88d3ac1062dbab45170170ca67a1dabb3 /PCbuild | |
parent | ca3cd004f3fb5c92227f54a0ea5d9f8b0631f330 (diff) | |
download | cpython-90441e857d2f0d0224899a328e89fd8d694e45ef.zip cpython-90441e857d2f0d0224899a328e89fd8d694e45ef.tar.gz cpython-90441e857d2f0d0224899a328e89fd8d694e45ef.tar.bz2 |
Issue #21623: open pyproject.props with an explicit encoding
Diffstat (limited to 'PCbuild')
-rw-r--r-- | PCbuild/build_ssl.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PCbuild/build_ssl.py b/PCbuild/build_ssl.py index dc51781..260cbf3 100644 --- a/PCbuild/build_ssl.py +++ b/PCbuild/build_ssl.py @@ -66,7 +66,7 @@ def find_working_perl(perls): # Fetch SSL directory from VC properties def get_ssl_dir(): propfile = (os.path.join(os.path.dirname(__file__), 'pyproject.props')) - with open(propfile) as f: + with open(propfile, encoding='utf-8-sig') as f: m = re.search('openssl-([^<]+)<', f.read()) return "..\..\openssl-"+m.group(1) |