Skip to content

Commit 2212ce7

Browse files
author
Laurie Clark-Michalek
committed
Support equality comparison on dict.keys
1 parent e58d127 commit 2212ce7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lucenequerybuilder/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def __init__(self, *args, **kwargs):
2727
self.allow_wildcard=False
2828
if 'wildcard' in kwargs:
2929
self.allow_wildcard = kwargs['wildcard']
30-
if len(args) == 1 and (not kwargs or kwargs.keys()==['wildcard']):
30+
if len(args) == 1 and (not kwargs or list(kwargs.keys())==['wildcard']):
3131
if isinstance(args[0], Q):
3232
if args[0].fielded:
3333
self._child_has_field = True

0 commit comments

Comments
 (0)