do CleanText forwards kwargs to allow children classes to have a default parameter
This commit is contained in:
parent
42028c390f
commit
0048365bcc
1 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue