(name, value, dummy0, dummy1)
return b"\x08" + name + (value and b"\x01" or b"\x00")
Encode a python boolean (True/False).
Encode a python boolean (True/False).
Encode a python boolean ( True / False ) .
def _encode_bool(name, value, dummy0, dummy1):
    """Encode a python boolean (True/False)."""
    return b"\x08" + name + (value and b"\x01" or b"\x00")
def _encode_bool ( name , value , dummy0 , dummy1 ) : return b"\x08" + name + ( value and b"\x01" or b"\x00" )