diff options
-rw-r--r-- | doc/overview.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/overview.rst b/doc/overview.rst index a04e389..76fc846 100644 --- a/doc/overview.rst +++ b/doc/overview.rst @@ -84,13 +84,13 @@ The following code fragment gives an example of this:: # We expect any of these three patterns... i = child.expect (['Permission denied', 'Terminal type', '[#\$] ']) if i==0: - print('Permission denied on host. Can't login') + print('Permission denied on host. Can\'t login') child.kill(0) - elif i==2: + elif i==1: print('Login OK... need to send terminal type.') child.sendline('vt100') child.expect('[#\$] ') - elif i==3: + elif i==2: print('Login OK.') print('Shell command prompt', child.after) |