summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2014-05-18 15:31:25 -0700
committerThomas Kluyver <takowl@gmail.com>2014-05-18 15:31:25 -0700
commit27a84da4acc5e3c0a7763b237c440eb944dde211 (patch)
tree2f89715e53f519c2efe41c615670fe880a8f84ce /doc/api
parente1672a21e1da319bbf7c7fbdc5e9e515a8196f14 (diff)
downloadpexpect-git-27a84da4acc5e3c0a7763b237c440eb944dde211.tar.gz
Update replwrap docs
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/replwrap.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/replwrap.rst b/doc/api/replwrap.rst
index 1b44ba1..bf44a94 100644
--- a/doc/api/replwrap.rst
+++ b/doc/api/replwrap.rst
@@ -16,7 +16,7 @@ replwrap - Control read-eval-print-loops
Using the objects above, it is easy to wrap a REPL. For instance, to use a
Python shell::
- py = REPLWrapper("python", ">>> ", "import sys; sys.ps1=%r" % PEXPECT_PROMPT)
+ py = REPLWrapper("python", ">>> ", "import sys; sys.ps1={!r}; sys.ps2={!r}")
py.run_command("4+7")
Convenience functions are provided for Python and bash shells: