()
return boundary
Our embarrassingly-simple replacement for mimetools.choose_boundary.
Our embarrassingly-simple replacement for mimetools.choose_boundary.
Our embarrassingly - simple replacement for mimetools . choose_boundary .
def choose_boundary():
    """
    Our embarrassingly-simple replacement for mimetools.choose_boundary.
    """
    boundary = binascii.hexlify(os.urandom(16))
    if six.PY3:
        boundary = boundary.decode('ascii')
    return boundary
def choose_boundary ( ) : boundary = binascii . hexlify ( os . urandom ( 16 ) ) if six . PY3 : boundary = boundary . decode ( 'ascii' ) return boundary