summaryrefslogtreecommitdiff
path: root/pexpect
Commit message (Collapse)AuthorAgeFilesLines
* Spelling fixesVille Skyttä2020-05-092-2/+2
|
* fix run's docstring. Benedek Racz2020-04-071-1/+1
| | | The example code was not shown as code.
* Do not directly call python and use sys.executableTomáš Chvátal2020-03-121-1/+1
| | | | | This makes sure the tests and wrapper works on systems where there is no python2 nor /usr/bin/python available
* Update version # for new releasedluyer2020-01-161-1/+1
|
* Accumulate async data correctly after future donedluyer2020-01-151-0/+1
|
* Avoid calling getvalue() twice in a rowdluyer2020-01-141-1/+1
|
* Undo incorrect formatting updatedluyer2020-01-141-1/+1
|
* Whitespace cleanup.dluyer2020-01-101-2/+2
|
* Whitespace cleanupdluyer2020-01-101-1/+1
|
* Whitespace cleanupdluyer2020-01-101-2/+2
|
* Updated expect_loop for split new_datadluyer2020-01-091-5/+7
|
* Split new_data initial and subsequent callsdluyer2020-01-091-53/+59
| | | expect_{loop,async} call new_data at start, when there isn't really new data. Reviewer requested a split of functionality here into two routines.
* Update _async.pydluyer2020-01-091-4/+1
|
* Merge pull request #5 from dluyer/masterdluyer2020-01-092-5/+12
|\ | | | | Merge from master
| * Disable chaining Timeout and EOF exceptionsMartin Di Paola2019-12-091-2/+8
| | | | | | | | | | | | The code works in Python 2.x and 3.x but it should be replaced by "raise exception from other-exception" when the support for Python 2.x gets dropped.
| * Fix last commit.Red_M2019-10-311-2/+2
| |
| * Add character read back value to allow for tracebacks to contain more data ↵Red_M2019-10-301-3/+4
| | | | | | | | about why an error occurred.
* | Updates from internal code review.dluyer2019-08-021-2/+7
| |
* | Update expect.pydluyer2019-08-021-2/+2
| |
* | Update expect.pydluyer2019-08-021-4/+0
| |
* | Update expect.pydluyer2019-08-021-2/+2
| |
* | Update expect.pydluyer2019-08-021-17/+63
| |
* | Update spawnbase.pydluyer2019-08-021-0/+3
| |
* | Fix missing data in 'before', especially after timeoutsdluyer2019-08-011-6/+10
|/ | | | | | | | | | | | - Fix 'before' return on eof/timeout/error. - Fix behavior when searchwindowsize is increased between calls to expect_loop (existing code could discard required content). Note, this is less efficient, but it is correct. The prior changes improved benchmarks but broke correctness; I haven't benchmarked to see if this is better or worse than the original code, before buffer_type use was introduced. It would be possible to make this more efficient with further complexity. Breakage introduced: https://github.com/pexpect/pexpect/commit/fd7332f59e003a8ee658647f883d4b03018c5e5b#diff-244f4b51bfbbbcb072d1428a79b9f4f7 Prior partial fix: https://github.com/pexpect/pexpect/commit/5a2e63f3fbfb39458c832a65bf8db330e954b8f6#diff-244f4b51bfbbbcb072d1428a79b9f4f7
* Merge pull request #537 from giovanism/patch-1Thomas Kluyver2019-05-161-5/+9
|\ | | | | interact: Add Python 3 compatibility warning
| * interact: Add Python 3 compatibility warningGiovan Isa Musthofa2019-04-161-5/+9
| | | | | | | | Close https://github.com/pexpect/pexpect/issues/517
* | Update version number, docs and release history due to #528, #562 and #563.Red_M2019-03-242-17/+16
| |
* | Merge branch 'master' of https://github.com/pexpect/pexpect into patch-1Tom Gillespie2019-03-231-1/+5
|\ \
| * \ Merge pull request #528 from tschmid/pxssh_customizationRed_M2019-03-231-2/+6
| |\ \ | | | | | | | | Allow customized pxssh client
| | * | Allow customized pxssh clientThomas Schmid2018-09-051-2/+6
| | |/ | | | | | | | | | This can be very useful if you want to run the pxssh client in a network namespace.
* | | pxssh.login require either username or ssh_configTom Gillespie2019-03-231-2/+37
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | If pxssh.login is called with an ssh_config then do not require username since it can be supplied via the config and some programs do not want to manage the username at all since it would require parsing the ssh config. This commit removes the independent username parameter when formatting cmd and instead appends the flag and the username to ssh_options if a username is provided. If neither username nor ssh_config is provided raise a TypeError in line with the error raised natively if username was not provided as a required positional argument. Tests ensure that ssh_config lists a username for the server in question so the user running the program does not leak. Note that ssh_config keywords are case-insensitive. This commit by itself fails tests because it has been modified to simplifiy the merge commit.
* | add use_poll to pxsshGerardo Poggio2018-10-261-2/+2
|/
* Use builtin enumerate method in searcher_reMark McClain2018-08-291-1/+1
|
* Merge pull request #304 from jdemeyer/read_more_bytesThomas Kluyver2018-08-181-40/+62
|\ | | | | Read more bytes
| * Read more bytes in read_nonblocking()Jeroen Demeyer2018-06-291-40/+62
| |
* | replwrap: add async supportRobin Jarry2018-06-192-7/+33
|/ | | | | | | | Add an 'async_' argument to run_command. When True, a coroutine will be returned which *must* be awaited in asynchronous code. Signed-off-by: Robin Jarry <robin.jarry@6wind.com> Signed-off-by: Thomas Faivre <thomas.faivre@6wind.com>
* Bug fix as per #498.Red_M2018-06-101-1/+1
|
* Version number -> 4.64.6Thomas Kluyver2018-05-291-1/+1
|
* Merge pull request #490 from Red-M/masterThomas Kluyver2018-05-291-7/+15
|\ | | | | Update docs and add SSH config file passing
| * Grammar fix for docs as per #490.Red_M2018-05-291-2/+2
| |
| * Fix as per #490 comments.Red_M2018-05-291-12/+6
| |
| * Woops.Red_M2018-05-201-7/+6
| |
| * Add test cases for #429 and fix feature for #429.Red_M2018-05-201-1/+1
| |
| * Minor doc update.Red_M2018-05-201-1/+1
| |
| * Add docstring for SSH config as per #429.Red_M2018-05-201-2/+7
| |
| * Add SSH configs as per #429.Red_M2018-05-201-1/+9
| |
| * Update doc string as per #489.Red_M2018-05-201-1/+3
| |
* | Merge pull request #492 from ryanpetrello/fix-poll-timeoutsThomas Kluyver2018-05-241-1/+1
|\ \ | | | | | | properly handle read timeouts with use_poll=True
| * | properly handle read timeouts with use_poll=TrueRyan Petrello2018-05-211-1/+1
| |/ | | | | | | see: https://github.com/pexpect/pexpect/issues/491
* | Make `crlf` match the default platform behaviour in `PopenSpawn`. Fixes #488Jerome M. BERGER2018-05-221-5/+12
|/