def strip_string(msg, flags):
 stripped = strip_format(msg, flags)
 stripped = EMAIL_RE.sub(u'', stripped)
 stripped = URL_RE.sub(u'', stripped)
 stripped = HASH_RE.sub(u'', stripped)
 stripped = DOMAIN_RE.sub(u'', stripped)
 stripped = PATH_RE.sub(u'', stripped)
 stripped = TEMPLATE_RE.sub(u'', stripped)
 return stripped

def strip_string ( msg , flags ) : stripped = strip_format ( msg , flags ) stripped = EMAIL_RE . sub ( u'' , stripped ) stripped = URL_RE . sub ( u'' , stripped ) stripped = HASH_RE . sub ( u'' , stripped ) stripped = DOMAIN_RE . sub ( u'' , stripped ) stripped = PATH_RE . sub ( u'' , stripped ) stripped = TEMPLATE_RE . sub ( u'' , stripped ) return stripped
strips not translated parts from the string .