def _guess_fmt_from_bytes(inp):
stripped = inp.strip()<EOL>fmt = None<EOL>ini_section_header_re = re.compile(b'<STR_LIT>')<EOL>if len(stripped) == <NUM_LIT:0>:<EOL><INDENT>fmt = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>if stripped.startswith(b'<STR_LIT:<>'):<EOL><INDENT>fmt = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>for l in stripped.splitlines():<EOL><INDENT>line = l.strip()<EOL>if not line.startswith(b'<STR_LIT:#>') and line:<EOL><INDENT>break<EOL><DEDENT><DEDENT>if ini_section_header_re.match(line):<EOL><INDENT>fmt = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>fmt = '<STR_LIT>'<EOL><DEDENT><DEDENT><DEDENT>return fmt<EOL>
Try to guess format of given bytestring.

    Args:
        inp: byte string to guess format of
    Returns:
        guessed format