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: |