From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id BC13613888F for ; Tue, 6 Oct 2015 03:48:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0348B21C018; Tue, 6 Oct 2015 03:48:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A597221C018 for ; Tue, 6 Oct 2015 03:48:09 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id E8D34340634 for ; Tue, 6 Oct 2015 03:48:08 +0000 (UTC) From: Mike Frysinger To: gentoo-catalyst@lists.gentoo.org Subject: [gentoo-catalyst] [PATCH] lock: fix hardlink_active definition Date: Mon, 5 Oct 2015 23:48:07 -0400 Message-Id: <1444103287-14519-1-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 2.5.2 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org X-Archives-Salt: 3e10852f-c6b2-4a01-a916-dc287b877c57 X-Archives-Hash: 62434bc403f02d6cae902aad57995a06 This is a member function of a class, so it must have a |self| argument first. The current code is clearly broken otherwise. Not that it seems to matter as there aren't any callers in the current codebase. --- catalyst/lock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalyst/lock.py b/catalyst/lock.py index a6f9d3a..9f954eb 100644 --- a/catalyst/lock.py +++ b/catalyst/lock.py @@ -354,7 +354,7 @@ class LockDir: return True return False - def hardlink_active(lock): + def hardlink_active(self, lock): if not os.path.exists(lock): return False -- 2.5.2