allow None for strip_controlchars
This commit is contained in:
parent
0a13e78427
commit
4b0df72c0c
@ -71,4 +71,4 @@ def exported(name, hidden=False):
|
||||
|
||||
|
||||
def strip_control_chars(s):
|
||||
return _strip_re.sub('', s)
|
||||
return _strip_re.sub('', s or '')
|
||||
|
Loading…
x
Reference in New Issue
Block a user