platypush/plugins/mail/__init__.py
def _get_password(password: Optional[str] = None, password_cmd: Optional[str] = None) -> Optional[str]:
        """
        Get the password either from a provided string or from a password command.
        """
        if not password_cmd:
            return password

        proc = subprocess.Popen(['sh', '-c', password_cmd], stdout=subprocess.PIPE)
        password = proc.communicate()[0].decode()
        return password or None

        Get the password either from a provided string or from a password command.
        
Get the password either from a provided string or from a password command.
Get the password either from a provided string or from a password command .
def _get_password(password: Optional[str] = None, password_cmd: Optional[str] = None) -> Optional[str]:
        if not password_cmd:
            return password
        proc = subprocess.Popen(['sh', '-c', password_cmd], stdout=subprocess.PIPE)
        password = proc.communicate()[0].decode()
        return password or None
def _get_password ( password : Optional [ str ] = None , password_cmd : Optional [ str ] = None ) -> Optional [ str ] : if not password_cmd : return password proc = subprocess . Popen ( [ 'sh' , '-c' , password_cmd ] , stdout = subprocess . PIPE ) password = proc . communicate ( ) [ 0 ] . decode ( ) return password or None
Get the password either from a provided string or from a password command.
Get the password either from a provided string or from a password command .
"""
        Get the password either from a provided string or from a password command.
        """
password
Optional[str]
password_cmd
Optional[str]