David Wilson
79dd00db5a
master: hack to avoid executing __main__.
2018-03-19 21:35:37 +05:45
David Wilson
236d83418c
Simple scan_code_imports test.
2018-03-19 21:35:37 +05:45
David Wilson
6f5d4882da
We don't support sets, so don't use them in module loader(!)
2018-03-19 21:35:37 +05:45
David Wilson
ecd39e4f2a
add missing IOLOG, fixes _iter_read/SshTest.
2018-03-19 21:35:37 +05:45
David Wilson
416ab90e02
docs: Fix index generation everywhere.
2018-03-19 21:35:37 +05:45
David Wilson
451fb347d0
master: include related modules in ModuleResponder response
2018-03-19 21:35:37 +05:45
David Wilson
4af920094a
iter_read: also treat 0-byte read as disconnection
2018-03-19 21:35:37 +05:45
David Wilson
d169b55d64
select: fix typo
2018-03-19 21:35:37 +05:45
David Wilson
af6812b458
Fix context naming for sudo and via=.
2018-03-19 21:35:37 +05:45
David Wilson
976c643f21
docs: remove note, unpickling can no longer trigger module loads
2018-03-19 21:35:37 +05:45
David Wilson
decc9a900c
docs: s/random/pseudorandom/
2018-03-19 21:35:37 +05:45
David Wilson
83f8f1863e
docs: fix pickler docs, begin relabelling master/slave->parent/child
2018-03-19 21:35:37 +05:45
David Wilson
4327baabfa
docs: remove final references to call_with_deadline().
2018-03-19 21:35:37 +05:45
David Wilson
dd69b8feeb
docs: with_context element is replaced by a decorator.
2018-03-19 21:35:37 +05:45
David Wilson
12fe884f1a
Reference Select
2018-03-19 21:35:37 +05:45
David Wilson
a81f804e92
Accidentally hecked in incomplete paragraph.
2018-03-19 21:35:37 +05:45
David Wilson
83e3e1b82a
Typo.
2018-03-19 21:35:37 +05:45
David Wilson
e9af841e60
docs: fix :return: syntax.
2018-03-19 21:35:36 +05:45
David Wilson
f1d82c7284
More API documentation.
2018-03-19 21:35:36 +05:45
David Wilson
9d2a11e70f
Fix function reference.
2018-03-19 21:35:36 +05:45
David Wilson
5772e06368
Typo.
2018-03-19 21:35:36 +05:45
David Wilson
b7f95e558f
Better document Router API and constructors.
2018-03-19 21:35:36 +05:45
David Wilson
815f23bddd
Sense of block= parameter was inverted.
2018-03-19 21:35:36 +05:45
David Wilson
3eb60d777a
Add mitogen.parent_ids to docs.
2018-03-19 21:35:36 +05:45
David Wilson
1449c972eb
Allow running responder_test with unittest.
2018-03-19 21:35:36 +05:45
David Wilson
0c573d0e47
Tidy up select examples even more.
2018-03-19 21:35:36 +05:45
David Wilson
e624295d63
Document channel class
2018-03-19 21:35:36 +05:45
David Wilson
c4d9f124c6
Document Sender and Receiver classes.
2018-03-19 21:35:36 +05:45
David Wilson
33643222de
docs: Add spacing between list items in body text.
2018-03-19 21:35:36 +05:45
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.
2018-03-19 21:35:36 +05:45
David Wilson
265d9f0293
Tidy up select docs.
2018-03-19 21:35:36 +05:45
David Wilson
3c288d12b0
Remove context.key from preamble_size.py too.
2018-03-19 21:35:36 +05:45
David Wilson
1be10575a1
importer: Don't respond to non-.py[co] imports.
2018-03-19 21:35:36 +05:45
David Wilson
bcae62c682
issue #20 : TestCase subclass with a nicer assertRaises
2018-03-19 21:35:36 +05:45
David Wilson
112f76fe89
More concise text.
2018-03-19 21:35:36 +05:45
David Wilson
48bf987570
issue #20 : fix queue.get() parameter list.
2018-03-19 21:35:36 +05:45
David Wilson
19869da087
issue #20 : Return type fix.
2018-03-19 21:35:36 +05:45
David Wilson
0565784164
Package rename cleanup.
2018-03-19 21:35:36 +05:45
David Wilson
f869e088f8
issue #20 : tests and fixes for mitogen.master.Select().
2018-03-19 21:35:36 +05:45
David Wilson
e3d967ebeb
issue #20 : initial implementation of mitogen.master.Select().
2018-03-19 21:35:36 +05:45
David Wilson
14783c75e8
issue #9 : log warning when a cross-sibling CALL_FUNCTION occurs
...
First step to making it a fatal error.
2018-03-19 21:35:36 +05:45
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.
2018-03-19 21:35:36 +05:45
David Wilson
4de321a3b0
Adjust get_boot_command to match _first_stage change
...
inspect module includes the staticmethod decorator added by
a8d1dc6730
2018-03-19 21:35:36 +05:45
David Wilson
abfa85d7da
Remove set from permitted types.
2018-03-19 21:35:36 +05:45
David Wilson
ced6d8e404
Fix up importer_test.
2018-03-19 21:35:36 +05:45
David Wilson
c810f66bcc
issue #19 : whoops, implement sliding window properly
2018-03-19 21:35:36 +05:45
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.
2018-03-19 21:35:36 +05:45
David Wilson
40e2e6eb4c
Add README.md to tests subdir.
2018-03-19 21:35:36 +05:45
David Wilson
175abee2c9
Fix inverted logic.
2018-03-19 21:35:36 +05:45
David Wilson
2fed3613e9
Syntax error.
2018-03-19 21:35:36 +05:45