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:
parent
3c1bb1cf0a
commit
9d4390eed9
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user