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