From 57ab3a0d9a3eafaadd407ab5c1473d5b75397b70 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Wed, 17 Jun 2015 09:57:01 +0200 Subject: [PATCH] Implicitly release lock when closing file Letting Python close the file will also release the lock after having flushed all buffers. Reported-by: Niels Thykier --- daklib/rm.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/daklib/rm.py b/daklib/rm.py index f9917584..e20cb5c1 100644 --- a/daklib/rm.py +++ b/daklib/rm.py @@ -585,6 +585,3 @@ def remove(session, reason, suites, removals, logfile.write("=========================================================================\n") logfile822.write("\n") - - fcntl.lockf(logfile822, fcntl.LOCK_UN) - fcntl.lockf(logfile, fcntl.LOCK_UN) -- 2.39.2