mirror of
https://github.com/certbot/certbot.git
synced 2026-04-15 22:20:28 -04:00
no need for U flag because we won't support py2 on windows
This commit is contained in:
parent
9cc5d18b97
commit
79b2ea19fb
1 changed files with 2 additions and 6 deletions
|
|
@ -458,12 +458,8 @@ def sha256sum(filename):
|
|||
:rtype: str
|
||||
"""
|
||||
sha256 = hashlib.sha256()
|
||||
if six.PY2:
|
||||
with open(filename, 'rU') as file_d:
|
||||
sha256.update(file_d.read().encode('UTF-8'))
|
||||
else:
|
||||
with open(filename, 'r', newline=None) as file_d:
|
||||
sha256.update(file_d.read().encode('UTF-8'))
|
||||
with open(filename, 'r', newline=None) as file_d:
|
||||
sha256.update(file_d.read().encode('UTF-8'))
|
||||
return sha256.hexdigest()
|
||||
|
||||
def cert_and_chain_from_fullchain(fullchain_pem):
|
||||
|
|
|
|||
Loading…
Reference in a new issue