def encode_noop(msg):
    """Do nothing."""
    # Well, not quite *nothing*: in Python3 we have to turn bytes into a string
    # in our internal surrogateescaped form in order to keep the model
    # consistent.
    orig = msg.get_payload()
    if not isinstance(orig, str):
        msg.set_payload(orig.decode('ascii', 'surrogateescape'))
def encode_noop ( msg ) : orig = msg . get_payload ( ) if not isinstance ( orig , str ) : msg . set_payload ( orig . decode ( 'ascii' , 'surrogateescape' ) )
Do nothing.