From 4228cde2fd26f321fba4aec9205537d9d1614817 Mon Sep 17 00:00:00 2001 From: dluyer <53582923+dluyer@users.noreply.github.com> Date: Tue, 14 Jan 2020 08:10:58 -0800 Subject: Undo incorrect formatting update --- pexpect/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pexpect') diff --git a/pexpect/run.py b/pexpect/run.py index af73137..ff288a1 100644 --- a/pexpect/run.py +++ b/pexpect/run.py @@ -49,7 +49,7 @@ def run(command, timeout=30, withexitstatus=False, events=None, (command_output, exitstatus) = run('ls -l /bin', withexitstatus=1) The following will run SSH and execute 'ls -l' on the remote machine. The - password 'secret' will be sent if the '(?i)password' pattern is ever seen: + password 'secret' will be sent if the '(?i)password' pattern is ever seen:: run("ssh username@machine.example.com 'ls -l'", events={'(?i)password':'secret\\n'}) -- cgit v1.2.1