David Wilson
dd69b8feeb
docs: with_context element is replaced by a decorator.
7 years ago
David Wilson
12fe884f1a
Reference Select
7 years ago
David Wilson
a81f804e92
Accidentally hecked in incomplete paragraph.
7 years ago
David Wilson
83e3e1b82a
Typo.
7 years ago
David Wilson
e9af841e60
docs: fix :return: syntax.
7 years ago
David Wilson
f1d82c7284
More API documentation.
7 years ago
David Wilson
9d2a11e70f
Fix function reference.
7 years ago
David Wilson
5772e06368
Typo.
7 years ago
David Wilson
b7f95e558f
Better document Router API and constructors.
7 years ago
David Wilson
815f23bddd
Sense of block= parameter was inverted.
7 years ago
David Wilson
3eb60d777a
Add mitogen.parent_ids to docs.
7 years ago
David Wilson
1449c972eb
Allow running responder_test with unittest.
7 years ago
David Wilson
0c573d0e47
Tidy up select examples even more.
7 years ago
David Wilson
e624295d63
Document channel class
7 years ago
David Wilson
c4d9f124c6
Document Sender and Receiver classes.
7 years ago
David Wilson
33643222de
docs: Add spacing between list items in body text.
7 years ago
David Wilson
849ccebe04
receiver: only permit one notify callback
...
There is no point spamming a list for every function call, there is no
use case where multiple notify callbacks would be useful.
7 years ago
David Wilson
265d9f0293
Tidy up select docs.
7 years ago
David Wilson
3c288d12b0
Remove context.key from preamble_size.py too.
7 years ago
David Wilson
1be10575a1
importer: Don't respond to non-.py[co] imports.
7 years ago
David Wilson
bcae62c682
issue #20 : TestCase subclass with a nicer assertRaises
7 years ago
David Wilson
112f76fe89
More concise text.
7 years ago
David Wilson
48bf987570
issue #20 : fix queue.get() parameter list.
7 years ago
David Wilson
19869da087
issue #20 : Return type fix.
7 years ago
David Wilson
0565784164
Package rename cleanup.
7 years ago
David Wilson
f869e088f8
issue #20 : tests and fixes for mitogen.master.Select().
7 years ago
David Wilson
e3d967ebeb
issue #20 : initial implementation of mitogen.master.Select().
7 years ago
David Wilson
14783c75e8
issue #9 : log warning when a cross-sibling CALL_FUNCTION occurs
...
First step to making it a fatal error.
7 years ago
David Wilson
9de1fca3bf
issue #9 : ensure messages arrive on the expected stream
...
If no ADD_ROUTE message has been received from the master associating a
stream with a particular context ID, then it is expected messages
originating from that context ID can only be routed via the parent.
7 years ago
David Wilson
4de321a3b0
Adjust get_boot_command to match _first_stage change
...
inspect module includes the staticmethod decorator added by
a8d1dc6730
7 years ago
David Wilson
abfa85d7da
Remove set from permitted types.
7 years ago
David Wilson
ced6d8e404
Fix up importer_test.
7 years ago
David Wilson
c810f66bcc
issue #19 : whoops, implement sliding window properly
7 years ago
David Wilson
43ccbf0459
issue #19 : second attempt at import scanner
...
This version is based on the modulefinder standard library module,
pruned back just to handle modules we know have been loaded already, and
to scan module-level imports only, rather than imports occurring in
class and function scope (crappy heuristic, but assume they are lazy
imports).
The ast and compiler modules were far too slow, whereas this version can
bytecode compile and scan all the imports for django.db.models (58
modules) in around 200ms.. 3.4ms per dependency, it's probably not going
to get much faster than that.
7 years ago
David Wilson
40e2e6eb4c
Add README.md to tests subdir.
7 years ago
David Wilson
175abee2c9
Fix inverted logic.
7 years ago
David Wilson
2fed3613e9
Syntax error.
7 years ago
David Wilson
8054fa867a
Only import compiler when necessary, it's not available in 3.x.
7 years ago
Alex Willmer
aa817f1b83
Handle failure to import the ast module
7 years ago
Alex Willmer
dd8271f061
Fix stale references to m.master.connect & m.ssh.connect
...
I'm fairly sure these updates are correct, but I'm not able to run the
test suite to confirm.
7 years ago
Alex Willmer
d706b7d6b8
Update lingering references to with_broker & run_with_broker
...
A previous commit renamed run_with_broker() and with_broker() to
run_with_router() and with_router() respctively. Some references were
missed.
7 years ago
Alex Willmer
dc26460a28
Add missing LOG import
...
Fixes an undefined variable error found by pylint
7 years ago
Alex Willmer
3b24314a8b
Use fully qualified Context
...
Fixes an undefined variable error found by pylint
7 years ago
Alex Willmer
57a0aa26bf
Add missing import of AnsibleError
...
Found with pylint
7 years ago
Alex Willmer
f2ea38a963
Add missing auth_incorrect_msg used to in exception message
...
Found using pylint
7 years ago
Alex Willmer
1f955fc655
Declare self-less method as static
...
Found using pylint
7 years ago
Alex Willmer
36754254b2
Add missing imports: ast, compiler
...
Found using pylint
7 years ago
David Wilson
01729b18a5
core: use an output deque rather than string to improve worst case perf
...
This probably worsens performance in the common case, but it prevents
runaway producers (see e.g. issue #36 ) from spending all their CPU
copying around huge strings.
It's also a small step towards a solution to issue #6 , which will
replace the output buffer with some sort of fancier queue anyway.
This reduces a particular 40 second run of rsync to 1.5 seconds.
7 years ago
David Wilson
eb060e1a0e
Document Router.profiling.
7 years ago
David Wilson
effe4117e1
Treat EPIPE as disconnect too; needed for fakessh.
7 years ago