mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 08:08:00 +02:00
no newline in py27
This commit is contained in:
@@ -458,7 +458,7 @@ def sha256sum(filename):
|
||||
:rtype: str
|
||||
"""
|
||||
sha256 = hashlib.sha256()
|
||||
with open(filename, 'r', newline=None) as file_d:
|
||||
with open(filename, 'r') as file_d:
|
||||
sha256.update(file_d.read().encode('UTF-8'))
|
||||
return sha256.hexdigest()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user