From 7a84c104fdbbb01c57974d1ca2665a27a9fea08b Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 23 Dec 2020 13:17:08 +0200 Subject: [PATCH] lock: fix AttributeError in dvc.lock.HardlinkLock (#5152) (#5153) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit afe96974c391da91ef0004f321d75de23f2e853d) Co-authored-by: Peter Rowlands (변기호) --- dvc/lock.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dvc/lock.py b/dvc/lock.py index ef2232de0..37fb7863c 100644 --- a/dvc/lock.py +++ b/dvc/lock.py @@ -148,9 +148,8 @@ class HardlinkLock(flufl.lock.Lock, LockBase): ): # pylint: disable=super-init-not-called import socket - super().__init__(lockfile) - self._tmp_dir = tmp_dir + super().__init__(lockfile) # NOTE: this is basically Lock.__init__ copy-paste, except that # instead of using `socket.getfqdn()` we use `socket.gethostname()`