Merge pull request #33827 from cachedout/issue_33810

Fix broken locate.locate function
This commit is contained in:
Mike Place 2016-06-08 06:49:56 -07:00
commit ec09095c45

View file

@ -108,7 +108,7 @@ def locate(pattern, database='', limit=0, **kwargs):
'wholename': 'w',
}
for option in kwargs:
if bool(kwargs[option]) is True:
if bool(kwargs[option]) is True and option in toggles:
options += toggles[option]
if options:
options = '-{0}'.format(options)