messages/cli.py
def get_body_from_file(kwds):
    """Reads message body if specified via filepath."""
    if kwds["file"] and os.path.isfile(kwds["file"]):
        kwds["body"] = open(kwds["file"], "r").read()
        kwds["file"] = None
def get_body_from_file(kwds):
    if kwds["file"] and os.path.isfile(kwds["file"]):
        kwds["body"] = open(kwds["file"], "r").read()
        kwds["file"] = None
def get_body_from_file ( kwds ) : if kwds [ "file" ] and os . path . isfile ( kwds [ "file" ] ) : kwds [ "body" ] = open ( kwds [ "file" ] , "r" ) . read ( ) kwds [ "file" ] = None
Reads message body if specified via filepath.
Reads message body if specified via filepath .