RegexpQuery: fix typo: false → fast

This commit is contained in:
Bruno Cauet 2015-03-16 16:45:09 +01:00
parent 40e793cdb1
commit a1b048f5de

View file

@ -177,8 +177,8 @@ class RegexpQuery(StringFieldQuery):
Raises InvalidQueryError when the pattern is not a valid regular
expression.
"""
def __init__(self, field, pattern, false=True):
super(RegexpQuery, self).__init__(field, pattern, false)
def __init__(self, field, pattern, fast=True):
super(RegexpQuery, self).__init__(field, pattern, fast)
try:
self.pattern = re.compile(self.pattern)
except re.error as exc: