mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-14 09:36:21 +01:00
Close file before returning from core.dgst
The old f.close() call was never reached.
This commit is contained in:
parent
3c1bb1cf0a
commit
9d4390eed9
@ -4621,8 +4621,8 @@ def dgst(file):
|
||||
buf = f.read(BUFSIZE)
|
||||
if not buf: break
|
||||
s.update(buf)
|
||||
return s.hexdigest()
|
||||
f.close()
|
||||
return s.hexdigest()
|
||||
|
||||
|
||||
def binary(s):
|
||||
|
Loading…
Reference in New Issue
Block a user