summaryrefslogtreecommitdiff
path: root/pexpect
Commit message (Collapse)AuthorAgeFilesLines
* use 'ucs' (uni-code-string) instead of 'data'asyncio_utf8_issueJeff Quast2015-10-121-4/+4
|
* 2 new tools: display-{fpathconf.maxcanon}.pydisable-maxcanon-testJeff Quast2015-10-061-7/+7
| | | | | | tests/test_maxcanon.py has been deleted and turned into an "autodetection" tool of sorts, no longer attempting to assert exacting values, but determine it programmatically.
* Encode command line args for unicode-mode spawnThomas Kluyver2015-10-061-0/+5
| | | | Attempt to address gh-272
* Version number -> 4.1.devThomas Kluyver2015-10-051-1/+1
|
* Version number -> 4.04.0Thomas Kluyver2015-10-051-1/+1
|
* Merge pull request #268 from takluyver/windows-importableThomas Kluyver2015-10-055-157/+180
|\ | | | | Make pexpect importable on Windows, and update docs
| * Update docs for PopenSpawn and Windows supportThomas Kluyver2015-10-032-2/+16
| |
| * Clear up a few unused importsThomas Kluyver2015-10-032-3/+0
| |
| * Make Pexpect importable on WindowsThomas Kluyver2015-10-032-153/+164
| |
* | Don't use deprecated spawnu in replwrap testsThomas Kluyver2015-10-041-2/+3
| |
* | Collect output as list instead of stringThomas Kluyver2015-10-041-3/+3
| | | | | | | | This is supposed to be more efficient
* | Use u-prefix for strings instead of u() functionThomas Kluyver2015-10-041-9/+5
| | | | | | | | We're not supporting Python 3.2.
* | This resolves two issues with replwrap,jquast2015-10-041-2/+4
|/ | | | | | | | | | | * for multiple commands, such as in ``'\n'.join((cmd, cmd2))``, cmd2 and beyond previously used a ``timeout`` of 1, instead of the specified or default ``timeout``. * furthermore, the output of multi-command output was discarded, only the last-most command output was received. Resolved by joining the result of ``self.child.before``.
* Merge pull request #146 from takluyver/popenThomas Kluyver2015-10-032-1/+167
|\ | | | | WIP: Add spawn class based on subprocess.Popen
| * Ensured buffered data is processed before raising EOFThomas Kluyver2015-09-291-14/+19
| |
| * No sleep in pipe reader loopThomas Kluyver2015-09-161-1/+0
| |
| * Fix return value of send() on Python 2Thomas Kluyver2015-09-121-4/+8
| |
| * Fix typo in docstringThomas Kluyver2015-09-121-1/+1
| |
| * Update unicode interface for PopenSpawnThomas Kluyver2015-09-121-11/+8
| |
| * Fix popen spawn and tests on windowsSteven Silvester2015-09-121-6/+2
| | | | | | | | | | | | Cleanup Always close stdin
| * Add a sendeof method and testsSteven Silvester2015-09-121-2/+8
| |
| * Enhanced popen_spawn and added testsSteven Silvester2015-09-121-22/+80
| | | | | | | | | | | | | | | | | | - Use just newline character for end of line - Use shlex to split cmd args - Improved non-blocking read to act more like ptyspawn - Fix send method and add sendline - Add kill method - Add several tests
| * Restrict arguments that can be passed on to PopenThomas Kluyver2015-09-121-4/+4
| |
| * Some improvementsThomas Kluyver2015-09-121-2/+20
| |
| * Start implementing a Pexpect spawn class based on PopenSteven Silvester2015-09-121-0/+83
| | | | | | | | Initial implementation copied from https://gist.github.com/blink1073/9a0ea82efc84cb9216d0
* | Merge remote-tracking branch 'origin/master' into default-handle-sighupdefault-handle-sighup-pullJeff Quast2015-09-222-7/+23
|\ \
| * \ Merge remote-tracking branch 'origin/setwinsize_on_spawn'Thomas Kluyver2015-09-221-3/+10
| |\ \ | | | | | | | | | | | | | | | | Conflicts: doc/history.rst
| | * \ Merge 'origin/master' into 'setwinsize_on_spawn'Jeff Quast2015-09-188-141/+169
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | especially careful in pexpect/__init__.py, the definition of the 'run' vs. '_run' function has changed; the phrase 'dimension' is removed entirely but functional: it should be allowed through the **kwargs pass-through.
| | * | | Added dimension argument to `pexpect.run()/runu()`.Jason Heeris2015-03-211-2/+2
| | | | |
| | * | | Allow specifying screen size for the subprocess in pexpect.spawn().Jason Heeris2015-03-161-3/+11
| | | | |
| * | | | Merge pull request #253 from pexpect/docs-revision-2Thomas Kluyver2015-09-222-4/+13
| |\ \ \ \ | | | | | | | | | | | | docstring about timeout behavior
| | * | | | will raise -> will be raised + newlinedocs-revision-2Jeff Quast2015-09-211-1/+2
| | | | | |
| | * | | | Clarify meaning of kwarg 'timeout' in spawn class.Jeff Quast2015-09-201-0/+6
| | | | | |
| | * | | | expect() clarifies timeout value behaviorJeff Quast2015-09-201-1/+4
| | | | | |
| | * | | | remove docstring about timeout=-1 in expect_listJeff Quast2015-09-201-3/+2
| | | |/ / | | |/| |
* | | | | Change ignore_sighup default to FalseThomas Kluyver2015-09-221-4/+3
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This means child processes will no longer ignore SIGHUP by default. Also pulled out a 'backwards incompatible changes' section of the release notes to make it clearer what has changed. Closes gh-168
* | | | Merge pull request #264 from pexpect/bugfix-honor-force-closeThomas Kluyver2015-09-221-1/+1
|\ \ \ \ | | | | | | | | | | Honor 'force=False' when set on p.close()
| * | | | Honor 'force=False' when set on p.close()bugfix-honor-force-closeJeff Quast2015-09-211-1/+1
| |/ / / | | | | | | | | | | | | | | | | This has no change, both this method and ptyprocess method signatures match 'True' value.
* | | | Merge pull request #259 from pexpect/interact-logfixThomas Kluyver2015-09-221-5/+9
|\ \ \ \ | | | | | | | | | | interact logs by self._log(s, 'read') and 'send'
| * | | | interact logs by self._log(s, 'read') and 'send'interact-logfixJeff Quast2015-09-211-5/+9
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes issue #190: __interact_copy implements its own read() and write() calls, circumventing the self._log() system, and omitting to log data that is sent to the child pty. Related, resolve old docstring about a setlog() method that was removed in SpawnBase refactor.
* | | | Merge pull request #251 from pexpect/docs-revision-3Thomas Kluyver2015-09-222-9/+9
|\ \ \ \ | | | | | | | | | | Improve docstrings about searchwindowsize value
| * | | | Improve docstrings about searchwindowsize valueJeff Quast2015-09-202-9/+9
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In class initializer: - introduce its default value and its relationship to the *maxread* keyword argument. - reduce explanation search cost relationship in expect method: - document its similar re-use of class attribute and keyword argument 'searchwindowsize' when the value of -1 is used.
* | | | Clarify ducked-typed return value of expect() callJeff Quast2015-09-201-6/+8
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This directly addresses issue #77. Rephrase first three sentences about the meaning of after and before. Instead, immediately address the availability of the match attribute and its possible value types. Instead of 'If an error occured' phrase, use 'On general exception' to better clarify the onerror() method behavior described here before re-raising in general 'except:' clause.
* | | 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
| | |