summaryrefslogtreecommitdiff
path: root/pexpect
Commit message (Collapse)AuthorAgeFilesLines
* 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
| | | |
| * | | Refactor, creating SpawnBase classThomas Kluyver2014-11-233-456/+458
| | | |
| * | | Move code out of __init__Thomas Kluyver2014-11-235-1650/+1641
| | | |
| * | | Remove some long-dead codeThomas Kluyver2014-11-231-9/+0
| | | |
| * | | Delegate more methods to ptyprocessThomas Kluyver2014-11-233-120/+55
| | | |
| * | | Start adapting pexpect to use ptyprocessThomas Kluyver2014-11-231-176/+18
| | |/ | |/|
* | | Bugfix for solaris in replwrap.bash()setecho-in-bash-replwrap-sunosJeff Quast2014-11-231-1/+1
|/ / | | | | | | | | | | | | | | Forgot to set ``echo=False`` when calling spawnu() directly in replwrap.bash(), resulting in IOError on SunOs: IOError: [Errno 22] Invalid argument: setecho() may not be called on this platform.
* | Merge pull request #142 from pexpect/failed-str-selfJeff Quast2014-11-221-2/+4
|\ \ | | | | | | Failure in __str__() before any output.
| * | Use ternary if/else in spawn.__str__failed-str-selfJeff Quast2014-11-221-2/+2
| | |
| * | Failure in __str__() before any output.Jeff Quast2014-11-221-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | When calling str() on a spawn class object before it has any command output, the __str__() override attempts to truncate long command output while the value of self.before is still None, raising: TypeError: 'NoneType' object has no attribute '__getitem__'
* | | Merge pull request #115 from takluyver/replwrap-bash-robustnessJeff Quast2014-11-222-2/+10
|\ \ \ | | | | | | | | Make replwrap.bash() robust against custom prompts in bashrc
| * | | Make replwrap.bash() robust against custom prompts in bashrcThomas Kluyver2014-09-212-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | By providing our own bashrc which overrides PS1, we can have a consistent prompt without breaking other customisations of bash that people may want to keep, such as aliases defined in bashrc.
* | | | Rectify docstring typo in compile_pattern_list()Rick Lin2014-11-201-1/+1
| | | |
* | | | Added ignore_sighup param for pxsshzjx202014-10-211-2/+2
| |/ / |/| |
* | | Modify run() to allow a tuple list of events.Hideaki Suzuki2014-10-111-10/+24
|/ / | | | | | | This is a feature enhancement mentioned by #116.
* | Document asyncio integrationThomas Kluyver2014-09-211-3/+21
| |
* | Expose async parameter for expect_exactThomas Kluyver2014-09-212-9/+14
| |
* | Check already read data before async reading moreThomas Kluyver2014-09-211-2/+14
| |
* | support timeout in async expectThomas Kluyver2014-09-212-4/+10
| |