Skip to content

Commit ee2563c

Browse files
committed
correct invalid passing of a list to a WeaklyCached instance
All arguments/kwargs must be hashable. Lists aren't, the standard has always been passing a tuple. This is an oversight, the previous implementation wasn't strict about flagging this; the new one is. Signed-off-by: Brian Harring <ferringb@gmail.com>
1 parent a30380f commit ee2563c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pkgcheck/checks/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1695,7 +1695,7 @@ def __init__(self, *args):
16951695
super().__init__(*args)
16961696
# create "!test? ( test )" conditional to match restrictions against
16971697
self.test_restrict = packages.Conditional(
1698-
"use", values.ContainmentMatch("test", negate=True), ["test"]
1698+
"use", values.ContainmentMatch("test", negate=True), ("test",)
16991699
)
17001700

17011701
def feed(self, pkg):

0 commit comments

Comments
 (0)