1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 09:16:16 +02:00

Close file before returning from core.dgst

The old f.close() call was never reached.
This commit is contained in:
Marcus Huewe 2017-11-07 17:52:34 +01:00
parent 3c1bb1cf0a
commit 9d4390eed9

View File

@ -4621,8 +4621,8 @@ def dgst(file):
buf = f.read(BUFSIZE) buf = f.read(BUFSIZE)
if not buf: break if not buf: break
s.update(buf) s.update(buf)
return s.hexdigest()
f.close() f.close()
return s.hexdigest()
def binary(s): def binary(s):