From afe96974c391da91ef0004f321d75de23f2e853d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Rowlands=20=28=EB=B3=80=EA=B8=B0=ED=98=B8=29?= Date: Wed, 23 Dec 2020 16:03:59 +0900 Subject: [PATCH] lock: fix AttributeError in dvc.lock.HardlinkLock (#5152) --- 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()`