diff options
author | noah <noah@656d521f-e311-0410-88e0-e7920216d269> | 2007-03-26 00:20:34 +0000 |
---|---|---|
committer | noah <noah@656d521f-e311-0410-88e0-e7920216d269> | 2007-03-26 00:20:34 +0000 |
commit | 7dd4e0b22408de7b6e3fb7bcd8b7ab18e0dcc785 (patch) | |
tree | 39da74ec32a0e477336025d7d69c5f0a89dc0f97 | |
parent | 161c7ccb8a356ef0b8e780bfb4612ff3bc804066 (diff) | |
download | pexpect-7dd4e0b22408de7b6e3fb7bcd8b7ab18e0dcc785.tar.gz |
Spellchecked comments with vim70.
git-svn-id: http://pexpect.svn.sourceforge.net/svnroot/pexpect/trunk@464 656d521f-e311-0410-88e0-e7920216d269
-rw-r--r-- | pexpect/pexpect.py | 8 | ||||
-rw-r--r-- | pexpect/pxssh.py | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/pexpect/pexpect.py b/pexpect/pexpect.py index a2fba8a..548aaab 100644 --- a/pexpect/pexpect.py +++ b/pexpect/pexpect.py @@ -341,7 +341,7 @@ class spawn (object): turn off stdin echo, but if you send your password before the application turned off echo, then you get your password echoed. Normally this wouldn't be a problem when interacting with a human at a - real heyboard. If you introduce a slight delay just before writing then + real keyboard. If you introduce a slight delay just before writing then this seems to clear up the problem. This was such a common problem for many users that I decided that the default pexpect behavior should be to sleep just before writing to the child application. 1/20th of a @@ -831,7 +831,7 @@ class spawn (object): line. Note: This readline() looks for a \\r\\n pair even on UNIX because this is what the pseudo tty device returns. So contrary to what you may expect you will receive the newline as \\r\\n. An empty string - is returned when EOF is hit immediately. Currently, the size agument is + is returned when EOF is hit immediately. Currently, the size argument is mostly ignored, so this behavior is not standard for a file-like object. If size is 0 then an empty string is returned. """ @@ -948,7 +948,7 @@ class spawn (object): program without waiting for end-of-line. If it is the first character of the line, the read() in the user program returns 0, which signifies end-of-file. This means to work as expected a sendeof() has to be - called at the begining of a line. This method does not send a newline. + called at the beginning of a line. This method does not send a newline. It is the responsibility of the caller to ensure the eof is sent at the beginning of a line. """ @@ -1196,7 +1196,7 @@ class spawn (object): 'match' will be set. You can see all the data read before the match in 'before'. You can see the data that was matched in 'after'. The re.MatchObject used in the re match will be in 'match'. If an error - occured then 'before' will be set to all the data read so far and + occurred then 'before' will be set to all the data read so far and 'after' and 'match' will be None. If timeout is -1 then timeout will be set to the self.timeout value. diff --git a/pexpect/pxssh.py b/pexpect/pxssh.py index 5bf64e6..560272b 100644 --- a/pexpect/pxssh.py +++ b/pexpect/pxssh.py @@ -148,7 +148,7 @@ class pxssh (spawn): def login (self,server,username,password='',terminal_type='ansi',original_prompt=r"[#$] ",login_timeout=10,port=None,auto_prompt_reset=True): """This logs the user into the given server. It uses the - 'original_prompt' to try to find the promp right after login. When it + 'original_prompt' to try to find the prompt right after login. When it finds the prompt it immediately tries to reset the prompt to something more easily matched. The default 'original_prompt' is very optimistic and is easily fooled. It's more reliable to try to match the original @@ -294,3 +294,4 @@ class pxssh (spawn): return False return True +# vi:ts=4:sw=4:expandtab:ft=python: |