From c900634e483c691df199ef9c1f3115b3bb54a958 Mon Sep 17 00:00:00 2001 From: Benedek Racz Date: Tue, 7 Apr 2020 09:42:26 +0200 Subject: fix run's docstring. The example code was not shown as code. --- pexpect/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pexpect/run.py b/pexpect/run.py index ff288a1..5695ab7 100644 --- a/pexpect/run.py +++ b/pexpect/run.py @@ -66,7 +66,7 @@ def run(command, timeout=30, withexitstatus=False, events=None, The 'events' argument should be either a dictionary or a tuple list that contains patterns and responses. Whenever one of the patterns is seen in the command output, run() will send the associated response string. - So, run() in the above example can be also written as: + So, run() in the above example can be also written as:: run("mencoder dvd://1 -o video.avi -oac copy -ovc copy", events=[(TIMEOUT,print_ticks)], timeout=5) -- cgit v1.2.1