raise an BadHeaderError exception with an argument string "Header values can't contain newlines (got %r)", where '%r' is replaced with value.
raise BadHeaderError ( "Header values can't contain newlines (got %r)" % value )