do CleanText forwards kwargs to allow children classes to have a default parameter

This commit is contained in:
Romain Bignon 2014-03-26 09:40:22 +01:00
commit 0048365bcc

View file

@ -165,8 +165,8 @@ class CleanText(Filter):
string. string.
Second, it replaces all symbols given in second argument. Second, it replaces all symbols given in second argument.
""" """
def __init__(self, selector, symbols=''): def __init__(self, selector, symbols='', **kwargs):
super(CleanText, self).__init__(selector) super(CleanText, self).__init__(selector, **kwargs)
self.symbols = symbols self.symbols = symbols
def filter(self, txt): def filter(self, txt):