def _hashable_bytes(data):
if isinstance(data, bytes):<EOL><INDENT>return data<EOL><DEDENT>elif isinstance(data, str):<EOL><INDENT>return data.encode('<STR_LIT:ascii>')  <EOL><DEDENT>else:<EOL><INDENT>raise TypeError(data)<EOL><DEDENT>
Coerce strings to hashable bytes.