diff options
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/python.py | 6 |
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. |