parameters: (string)
docstring: Creates a bytes string in either Python 2 or  3.
docstring_summary: Creates a bytes string in either Python 2 or  3.
docstring_tokens: Creates a bytes string in either Python 2 or 3 .
function: def bytes23(string):
    """Creates a bytes string in either Python 2 or  3."""
    if sys.version_info >= (3, 0):
      return bytes(string, "utf8")
    else:
      return bytes(string)
function_tokens: def bytes23 ( string ) : if sys . version_info >= ( 3 , 0 ) : return bytes ( string , "utf8" ) else : return bytes ( string )