Add missing 'self' to language backends

This commit is contained in:
Roberto Rosario
2014-07-01 00:45:15 -04:00
parent c51a3be65a
commit 1dd36089cf
3 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ from . import BackendBase
class LanguageBackend(BackendBase):
def check_word(word):
def check_word(self, word):
ALL_ALPHANUM = re.compile('([0-9a-z])', re.I)
NON_ALPHANUM = re.compile('([^0-9a-z])', re.I)

View File

@@ -7,7 +7,7 @@ from . import BackendBase
class LanguageBackend(BackendBase):
def check_word(word):
def check_word(self, word):
ALL_ALPHANUM = re.compile('([0-9ёйцукенгшщзхъфывапролджэячсмитьбю])', re.I)
NON_ALPHANUM = re.compile('([^0-9ёйцукенгшщзхъфывапролджэячсмитьбю])', re.I)

View File

@@ -7,7 +7,7 @@ from . import BackendBase
class LanguageBackend(BackendBase):
def check_word(word):
def check_word(self, word):
ALL_ALPHANUM = re.compile('([0-9a-záéíóúüñ])', re.I)
NON_ALPHANUM = re.compile('([^0-9a-záéíóúüñ])', re.I)