mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #21623: open pyproject.props with an explicit encoding
This commit is contained in:
parent
ca3cd004f3
commit
90441e857d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue