allow None for strip_controlchars

This commit is contained in:
mitsuhiko 2007-11-21 12:30:40 +01:00
parent 0a13e78427
commit 4b0df72c0c

View File

@ -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 '')