#NEWLINE# def _psql_prepare_and_run( cmd , host = None , port = None , maintenance_db = None , password = None , runas = None , user = None ) : #NEWLINE# #INDENT# rcmd = _psql_cmd ( * cmd , host = host , user = user , port = port , maintenance_db = maintenance_db , password = password ) #NEWLINE# cmdret = _run_psql ( rcmd , runas = runas , password = password , host = host , port = port , user = user ) #NEWLINE# return cmdret