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.
|
||||
Second, it replaces all symbols given in second argument.
|
||||
"""
|
||||
def __init__(self, selector, symbols=''):
|
||||
super(CleanText, self).__init__(selector)
|
||||
def __init__(self, selector, symbols='', **kwargs):
|
||||
super(CleanText, self).__init__(selector, **kwargs)
|
||||
self.symbols = symbols
|
||||
|
||||
def filter(self, txt):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue