Unverified Commit ff4c4033 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by GitHub

Merge pull request #2759 from bmwiedemann/python3

Fix vmodtool with python3
parents d6b3076b ddaa6e5e
......@@ -859,7 +859,7 @@ class vcc(object):
def parse(self):
global inputline
a = "\n" + open(self.inputfile, "r").read()
self.file_id = hashlib.sha256(a).hexdigest()
self.file_id = hashlib.sha256(a.encode('utf-8')).hexdigest()
s = a.split("\n$")
self.copyright = s.pop(0).strip()
while s:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment