summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Quast <contact@jeffquast.com>2015-02-14 16:47:44 -0800
committerJeff Quast <contact@jeffquast.com>2015-02-14 16:47:44 -0800
commit242f7d07ec41ee61fbc60508743866344b106f3b (patch)
tree43f40af0d5323d6d5f0e68528eebf4cff4a34906
parent38518ff6f3a6895884dc190c12ab57efd3884f67 (diff)
downloadpexpect-242f7d07ec41ee61fbc60508743866344b106f3b.tar.gz
Document that a method may also be used.
-rw-r--r--pexpect/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pexpect/__init__.py b/pexpect/__init__.py
index 5a77f38..4b153f4 100644
--- a/pexpect/__init__.py
+++ b/pexpect/__init__.py
@@ -149,8 +149,8 @@ def run(command, timeout=30, withexitstatus=False, events=None,
Note that you should put newlines in your string if Enter is necessary.
- Like the example above, the responses may also contain callback functions.
- Any callback is a function that takes a dictionary as an argument.
+ Like the example above, the responses may also contain a callback, either
+ a function or method. It should accept a dictionary value as an argument.
The dictionary contains all the locals from the run() function, so you can
access the child spawn object or any other variable defined in run()
(event_count, child, and extra_args are the most useful). A callback may