Skip to content

Commit 2af1304

Browse files
committed
dffml: Fix duplicate preference matching on exported names
`==` should have been `!=`, load order varies machine to machine, just came up as an issue when `@config` started to become `ConfigLoader`. Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
1 parent 03108c3 commit 2af1304

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dffml/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class DuplicateName(Exception):
9393
# Do not expore any modules (they are probably just imported)
9494
continue
9595
if name in DUPLICATE_PREFER:
96-
if cls_func_all[name][0] == DUPLICATE_PREFER[name]:
96+
if cls_func_all[name][0] != DUPLICATE_PREFER[name]:
9797
continue
9898
elif cls_func_all[name][2] is obj:
9999
pass

0 commit comments

Comments
 (0)