Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/catalyst:wip/mattst88 commit in: catalyst/base/
Date: Thu, 10 Jun 2021 00:48:48
Message-Id: 1616641373.7c4d1c5f3aab4a32795797332f33d5a759f72a9d.mattst88@gentoo
1 commit: 7c4d1c5f3aab4a32795797332f33d5a759f72a9d
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 25 03:02:53 2021 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 25 03:02:53 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=7c4d1c5f
7
8 catalyst: Remove @staticmethod from generate_hash()
9
10 Fixes: 48338534 ("Add option to generate BSD-style tagged hashes ...")
11 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
12
13 catalyst/base/genbase.py | 3 +--
14 1 file changed, 1 insertion(+), 2 deletions(-)
15
16 diff --git a/catalyst/base/genbase.py b/catalyst/base/genbase.py
17 index b89e7c93..6d039a8f 100644
18 --- a/catalyst/base/genbase.py
19 +++ b/catalyst/base/genbase.py
20 @@ -12,8 +12,7 @@ class GenBase():
21 def __init__(self, myspec):
22 self.settings = myspec
23
24 - @staticmethod
25 - def generate_hash(filepath, name):
26 + def generate_hash(self, filepath, name):
27 h = hashlib.new(name)
28
29 with open(filepath, 'rb') as f: