Mirror of mitogen
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
David Wilson 8cc20856a8 issue #106: support custom new-style modules + 'reexec by default'
Rather than assume any structure about the Python code:

* Delete the exit_json/fail_json monkeypatches.
* Patch SystemExit rather than a magic monkeypatch-thrown exception
* Setup fake cStringIO stdin, stdout, stderr and return those along with
  SystemExit exit status
* Setup _ANSIBLE_ARGS as we used to, since we still want to override
  that with '{}' to prevent accidental import hangs, but also provide
  the same string via sys.stdin.
* Compile the module bytecode once and re-execute it for every
  invocation. May change this back again later, once some benchmarks are
  done.
* Remove the fixups stuff for now, it's handled by ^ above.

Should support any "somewhat new style" Python module, including those
that just give up and dump stuff to stdout directly.
8 years ago
ansible_mitogen issue #106: support custom new-style modules + 'reexec by default' 8 years ago
docs docs: More getting started. 8 years ago
examples issue #106: import binary modules. 8 years ago
mitogen issue #106: add Service.__repr__, reply to bad calls 8 years ago
tests issue #174: test all io_op() logic. 8 years ago
.gitignore Ignore compiled Python files 8 years ago
.lgtm.yml compat: ignore LGTM checks on third party 8 years ago
.travis.yml travis: Cache wheels and other pip artifacts 8 years ago
LICENSE Add license text everywhere. 8 years ago
README.md README: move testing bits into tests directory. 8 years ago
dev_requirements.txt tests: Add coverage as a dev requirement 8 years ago
preamble_size.py issue #155: parent: move master.Context into parent. 8 years ago
setup.cfg tests: Switch to unit2 test runner, with coverage 8 years ago
setup.py setup: Scan project dir to find packages 8 years ago
test Set strict mode in test script 8 years ago
tox.ini tests: Switch to unit2 test runner, with coverage 8 years ago

README.md