summaryrefslogtreecommitdiff
path: root/pexpect
Commit message (Collapse)AuthorAgeFilesLines
* display expected prompt as PROMPT, not PROMPT_SET_SHissue-42-cannot-implicit-bytes-to-strjquast2014-03-071-1/+1
| | | | completes issue #44; thanks to @takluyver for keen eye.
* closes issue #42, self.buffer decoded implicitlyjquast2014-03-061-1/+3
| | | | | | | | | | | | | | | | | | | create a unit tests which otherwise failed for python3 only: mock the return value of set_unique_prompt for a value of False, which causes ExceptionPxssh to raise. previously, displaying self.buffer within the exception causes bytes() to be implicitly decoded to str (unicode type in py3). python2 didn't care. it is implicitly decoded as 'ascii' encoding, without warning. Then, use the %r to represent it as b'xyz' in python3. Also, display what we expected to be more helpful for the user. What is actually happening here is the 'set PS1=' command is used so that pexpect can more regularly understand when the prompt is awaiting command input, and it is set to something more predictable. You'd be suprised what kind of hackery can happen to prompt values even if PS1 is explicitly set, especially in today's oh-my-zhs and git-prompt.sh extensions.
* Remove workaround for bug affecting very old platformsEd Maste2014-02-131-11/+4
| | | | https://github.com/pexpect/pexpect/issues/39
* Simplifying code to use format of select.error arguments that works in both ↵Matthew Printz2014-02-051-5/+1
| | | | Py27 and Py3
* Fixing issue where errno does not exist on select.errorMatthew Printz2014-02-041-1/+5
|
* Update pxssh example for Python 3Thomas Kluyver2014-01-231-10/+10
|
* Polish pxssh docstringsThomas Kluyver2014-01-231-19/+27
|
* Make code style more regularThomas Kluyver2014-01-231-24/+21
|
* Fix documentation of using auto_prompt_reset.Thomas Kluyver2014-01-231-4/+3
| | | | Closes gh-35
* Prepare for 3.1 release3.1Thomas Kluyver2014-01-221-1/+1
|
* Merge pull request #29 from takluyver/examples-main-blocksThomas Kluyver2014-01-071-2/+0
|\ | | | | Don't catch unhandled exceptions in examples.
| * Don't catch unhandled exceptions in examples.Thomas Kluyver2013-12-131-2/+0
| | | | | | | | Let Python handle printing a traceback and exiting in these cases.
* | Merge pull request #31 from takluyver/stdout-bytes-py3Thomas Kluyver2014-01-071-1/+8
|\ \ | | | | | | Allow importing when sys.stdout is reassigned on Python 3
| * | Allow importing when sys.stdout is reassigned on Python 3Thomas Kluyver2013-12-181-1/+8
| |/ | | | | | | Closes gh-30
* | Merge pull request #34 from offby1/masterThomas Kluyver2014-01-071-0/+1
|\ \ | | | | | | ExceptionPexpect.__init__: invoke super's init
| * | ExceptionPexpect.__init__: invoke super's initEric Hanchrow2014-01-061-0/+1
| |/ | | | | | | | | | | | | | | This avoids an exception in the following: import pexpect import pickle pickle.loads(pickle.dumps(pexpect.EOF('hey you')))
* | Correct handle when select in spawn returns with an error (e.g. SIGWINCH)Alex Ho2013-12-301-1/+1
|/
* Cleanup of unused import and loop exit strategy in try_read_promptJoel Edwards2013-12-111-4/+1
|
* Switched to a simpler approache for appending to the promptJoel Edwards2013-12-111-11/+3
| | | | in try_read_prompt thanks to a suggestion from takluyver
* Removed call to self._coerce_read_string in try_read_promptJoel Edwards2013-12-111-1/+1
| | | | | This was an artifact from my attempt at adding support for non ASCII character encodings in a prior commit.
* Removed coerce_result argument from pexpect read_nonblocking method.Joel Edwards2013-12-112-8/+4
|
* __init__.py (pexpect)Joel Edwards2013-12-112-7/+19
| | | | | | | | | - updated the read_nonblocking method to take a new boolean coerce_result argument pxssh.py - updated try_read_prompt to support python 2.x/3.x results from os.read (string/binary respectively)
* Cleaned up prompt synchronizationJoel Edwards2013-12-111-24/+36
|
* Added a control arguments to pxssh login methodJoel Edwards2013-12-111-14/+42
| | | | | | | | | - key verification for localhost - configurable quiet setting - synchronization multiplier for (very) slow connections Added new method (try_read_prompt) to pxssh for performing the prompt read quickly on fast connections while not failing on slower connections
* Bump version numbers for 3.0 final release3.0Thomas Kluyver2013-11-111-1/+1
|
* Bump version numbers for release candidate 33.0rc3Thomas Kluyver2013-11-041-1/+1
|
* Bump version numbers for release candidate 23.0rc2Thomas Kluyver2013-10-281-1/+1
|
* Fix silly mistake from previous commitThomas Kluyver2013-10-271-2/+2
|
* Update version number for 3.0rc13.0rc1Thomas Kluyver2013-10-271-2/+2
|
* Simplify pexpect.pshThomas Kluyver2013-10-261-35/+7
|
* Simplify FSM running exampleThomas Kluyver2013-10-211-12/+1
|
* Test and cleanup of pexpect.pshThomas Kluyver2013-10-211-29/+20
|
* Add test for pxssh moduleThomas Kluyver2013-10-211-1/+0
|
* Add simple test for pexpect.FSMThomas Kluyver2013-10-211-2/+4
|
* Test and fix getting tracebacks excluding pexpect codeThomas Kluyver2013-10-211-17/+1
|
* No coverage for import failureThomas Kluyver2013-10-211-1/+1
|
* Update version numbers for 3.0 beta 23.0b2Thomas Kluyver2013-10-091-1/+1
|
* Improve test for setting and retrieving window sizebetter-test-winsizeThomas Kluyver2013-10-091-1/+1
|
* Merge pull request #10 from pexpect/incremental-decoderThomas Kluyver2013-10-091-1/+3
|\ | | | | Incremental decoder
| * `is ucs is None` is not necessaryincremental-decoderjquast2013-10-091-2/+1
| | | | | | | | | | | | Don't know why I had this in one of my own implementations. An incrementaldecoder never returns None, only u'', which is what we'd want in this context, anywaay.
| * brevityjquast2013-10-091-4/+1
| |
| * incremental decode full buffer, not iterationsjquast2013-10-091-4/+3
| | | | | | forgot that iterating over a byte string yields integers, making for strange values for the incremental decoder !
| * use an incremental decoder for streamsjquast2013-10-081-1/+8
| | | | | | This allows the test case that slowly prints each byte of a multibyte utf-8 stream to pass.
* | Ignore SIGHUP by default, for backwards compatibilityThomas Kluyver2013-10-081-1/+6
| |
* | Make ignoring of SIGHUP optional (disabled by default) in order to preventKimmo Parviainen-Jalanko2013-10-041-5/+5
|/ | | | process leaks.
* Add spawnu and runu to __all__ listThomas Kluyver2013-10-021-2/+2
|
* Fix check on timeoutThomas Kluyver2013-10-021-1/+1
| | | | Closes gh-2
* Version 3.0 beta 13.0b1Thomas Kluyver2013-10-021-1/+1
|
* Minor doc fixesThomas Kluyver2013-10-021-8/+4
|
* Add runu function (unicode interface to run())Thomas Kluyver2013-10-021-4/+22
|