summaryrefslogtreecommitdiff
path: root/pexpect
Commit message (Collapse)AuthorAgeFilesLines
* Allow {p}.interact(escape_character=None)Jeff Quast2015-09-181-7/+8
| | | | | | | | | | | For those who wish to disable the ability to escape using escape_character until normal process termination, they may now set the value of escape_character to None. Some of the related docstring on escape_character was made more brief and clear about its related value behavior. This closes #131 #132 #167
* Merge pull request #239 from takluyver/more-encoding-parametersJeff Quast2015-09-153-7/+13
|\ | | | | Encoding parameters for pxssh and fdspawn
| * Add encoding parameter for fdspawnThomas Kluyver2015-09-121-3/+6
| | | | | | | | Closes gh-92
| * Fix for pxssh when reading unicodeThomas Kluyver2015-09-121-1/+1
| |
| * Add encoding parameter to pxsshuThomas Kluyver2015-09-121-2/+5
| | | | | | | | | | Closes gh-172 (alternative approach to the same problem) Closes gh-169
| * Update docstring mention of unicode interfaceThomas Kluyver2015-09-121-1/+1
| |
* | Fix TypoPatrick Yevsukov2015-09-151-1/+1
| |
* | Deprecation warning in pexpect.screenThomas Kluyver2015-09-121-0/+7
|/
* Merge pull request #236 from takluyver/restore-fdspawn-sendThomas Kluyver2015-09-121-0/+24
|\ | | | | Restore send/write methods to fdpexpect
| * Restore send/write methods to fdpexpectThomas Kluyver2015-09-091-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | Closes gh-174 I'm adding these back, but I don't want to document them or encourage their use - if you're working with an fd, I think it's clearer to use os.write() directly rather than Pexpect's wrappers. I haven't added sendintr, sendeof or sendcontrol, because I don't think they really make sense for a general fd, and you can easily do the equivalent things explicitly if you need to.
* | Merge pull request #182 from takluyver/reintegrate-unicodeThomas Kluyver2015-09-094-115/+93
|\ \ | |/ |/| 'Unicode mode' in spawn class
| * Fix deprecated runu functionThomas Kluyver2015-02-271-1/+2
| |
| * Deprecate runu functionThomas Kluyver2015-02-261-20/+15
| |
| * Integrate unicode API into spawn, rather than subclassingThomas Kluyver2015-02-263-95/+77
| |
* | accept unicode cmd on Python 2Min RK2015-06-161-1/+2
| |
* | Tests cases and documentation to supplement wait()Jeff Quast2015-04-261-1/+8
| | | | | | | | | | | | | | This matches the same branch of ptyprocess, noexception-on-wait-after-terminate, which allows calling the wait() method multiple times without raising an exception.
* | Merge pull request #202 from detly/eof-fixThomas Kluyver2015-04-251-1/+2
|\ \ | | | | | | Set flag_eof in async protocol. Fixes #200.
| * | Set flag_eof in async protocol. Fixes #200.Jason Heeris2015-04-071-1/+2
| |/
* | Merge remote-tracking branch 'origin/freebsd-support' into bugfix-virtualenvJeff Quast2015-04-241-1/+1
|\ \
| * | FreeBSD: Document magic max canon value of 1920Jeff Quast2015-02-221-1/+1
| |/
* | Merge pull request #178 from pexpect/support-method-as-run-event-callbackJeff Quast2015-04-241-5/+8
|\ \ | | | | | | Support MethodType as callback for pexpect.run(event=...)
| * | Document that a method may also be used.Jeff Quast2015-02-141-2/+2
| | |
| * | Display well-formed TypeError for events callbackJeff Quast2015-02-141-1/+3
| | |
| * | PEP8: do not use backslash continuation char '\'Jeff Quast2015-02-141-2/+2
| | | | | | | | | | | | "Continuation lines should align ... using Python's implicit line joining inside parentheses"
| * | Begin __version__ "4.0.dev"Jeff Quast2015-02-141-1/+1
| | | | | | | | | | | | as suggested by @takluyver in https://github.com/pexpect/pexpect/issues/174
| * | Updated Error message to mention MethodTypeSamuel Bancal2015-02-121-1/+1
| | |
| * | Allows also method callback for events argument in pexpect.run()Samuel Bancal2015-02-121-1/+2
| |/ | | | | | | Updated test_run.py for this case
* | Fix async expect when data was already readThomas Kluyver2015-03-311-3/+4
|/ | | | Closes gh-195
* Merge pull request #106 from pexpect/issue-104-cannot-exec-setuidsThomas Kluyver2014-12-202-32/+18
|\ | | | | Issue 104 cannot exec setuids
| * Merge remote-tracking branch 'origin/master' into issue-104-cannot-exec-setuidsJeff Quast2014-12-191-5/+15
| |\
| * \ Merge remote-tracking branch 'origin/master' into issue-104-cannot-exec-setuidsJeff Quast2014-12-1810-1904/+1656
| |\ \ | | | | | | | | | | | | | | | | Conflicts: pexpect/__init__.py
| * \ \ Merge remote-tracking branch 'origin/master' into issue-104-cannot-exec-setuidsJeff Quast2014-11-238-132/+367
| |\ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: doc/history.rst
| * | | | Closes issue #104 -- cannot execute sudo(8)jquast2014-08-241-32/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, misinterpreted that os.access(file, X_OK) always returns True on Solaris. Yes, but only for the uid of 0. Python issue #13706 closed "not a bug" reads to "just use os.stat()", so we went to great lengths to do so quite exhaustively. But this is wrong -- *only* when root, should we check the file modes -- os.access of X_OK works perfectly fine for non-root users. And, we should only check if any of the executable bits are set. Alas, it is true, you may execute that which you may not read -- because as root, you can always read it anyway. Verified similar solution in NetBSD test.c (/bin/test), OpenBSD ksh for its built-in test, and what FreeBSD/Darwin for their implementation of which.c.
* | | | | Merge pull request #164 from takluyver/contextmanagerJeff Quast2014-12-191-0/+9
|\ \ \ \ \ | |_|_|_|/ |/| | | | Allow spawn() and friends to be used as context managers
| * | | | Allow spawn() and friends to be used as context managersThomas Kluyver2014-12-191-0/+9
| | |_|/ | |/| | | | | | | | | | Closes gh-111
* | | | Allow the user to specify a preexec_fn, which will be passed to ptyprocessThomas Kluyver2014-12-111-5/+15
| | | |
* | | | ptyprocess API changed to a single preexec_fn functionThomas Kluyver2014-12-111-1/+1
|/ / /
* | | Merge pull request #79 from pexpect/doc-and-test-max-canonThomas Kluyver2014-11-251-3/+36
|\ \ \ | | | | | | | | Test and document PC_MAX_CANON.
| * | | all together -> altogether (thanks TK)Jeff Quast2014-11-251-1/+1
| | | |
| * | | docstring grammer fixes in send*() functiondoc-and-test-max-canonJeff Quast2014-11-241-3/+3
| | | |
| * | | Tell about MAX_CANON in send*() functionsJeff Quast2014-11-241-3/+36
| | | |
* | | | Change run* timeout=-1 -> timeout=30Jeff Quast2014-11-241-2/+2
|/ / / | | | | | | | | | | | | | | | Leave the "if timeout == -1" in spawn intact, for any poor fool who explicitly set timeout of -1 to implicitly mean timeout of 30.
* | | allow user to specify SSH options via the constructor parametere optionsRadomirs Cirskis2014-11-251-2/+11
| | |
* | | allow user to specify SSH options via pxssh.options dictionaryRad Cirskis2014-11-251-2/+6
| | |
* | | Merge pull request #123 from pexpect/use-ptyprocessThomas Kluyver2014-11-238-1913/+1617
|\ \ \ | | | | | | | | Start adapting pexpect to use ptyprocess
| * | | Fix failure in str(spawnobj) before any outputJeff Quast2014-11-231-2/+4
| | | |
| * | | Not all spawn classes have a kill methodThomas Kluyver2014-11-231-4/+0
| | | |
| * | | Record control characters in log filesThomas Kluyver2014-11-231-3/+15
| | | |
| * | | Delegate sending control characters to ptyprocessThomas Kluyver2014-11-232-60/+12
| | | |
| * | | Refactor, creating SpawnBaseUnicode classThomas Kluyver2014-11-232-59/+40
| | | |