def exp_str(s): ret = util.struct_to_string(s, util.EXPECTED_LEN) if pretty else str(s) return ret
def got_str(s): return util.struct_to_string(s, util.GOT_LEN) if pretty else str(s)