summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSteven Myint <git@stevenmyint.com>2013-10-08 20:00:10 -0700
committerSteven Myint <git@stevenmyint.com>2013-10-08 20:00:10 -0700
commit00aec40d5a7cffeeee9024a2d5f4aa1c1e52866e (patch)
tree09ac3514a037ac2c771b9ad2742172d5a6dca30a /examples
parenta34cfbdde75d8d0aa276afeeb824522fe82a7b34 (diff)
downloadpexpect-git-00aec40d5a7cffeeee9024a2d5f4aa1c1e52866e.tar.gz
Update John Malkovich too
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/python.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/python.py b/examples/python.py
index d8ad7f4..44c15e1 100755
--- a/examples/python.py
+++ b/examples/python.py
@@ -26,11 +26,11 @@ from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
-# Don't do this unless you like being John Malkovich
-# c = pexpect.spawn ('/usr/bin/env python ./python.py')
-
import pexpect
+# Don't do this unless you like being John Malkovich
+# c = pexpect.spawnu('/usr/bin/env python ./python.py')
+
# Note that, for Python 3 compatibility reasons, we are using spawnu and
# importing unicode_literals (above). spawnu accepts Unicode input and
# unicode_literals makes all string literals in this script Unicode by default.