From 8cf885aa6c41310d14dc70270c4ecdcfaa16e477 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Fri, 4 Dec 2015 10:11:52 +0000 Subject: Update pxssh examples to import 'from pexpect' Closes gh-302 --- pexpect/pxssh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pexpect/pxssh.py b/pexpect/pxssh.py index 4638164..d5aec8a 100644 --- a/pexpect/pxssh.py +++ b/pexpect/pxssh.py @@ -46,7 +46,7 @@ class pxssh (spawn): Example that runs a few commands on a remote server and prints the result:: - import pxssh + from pexpect import pxssh import getpass try: s = pxssh.pxssh() @@ -70,7 +70,7 @@ class pxssh (spawn): Example showing how to specify SSH options:: - import pxssh + from pexpect import pxssh s = pxssh.pxssh(options={ "StrictHostKeyChecking": "no", "UserKnownHostsFile": "/dev/null"}) -- cgit v1.2.1