Debian Codegraph @

docs/_ext/sphinx_aioquic.py

raw symbols SCIP
1 from docutils import nodes
2 from docutils.parsers.rst import Directive
3 from docutils.statemachine import StringList
4
5
6 class AioquicTransmit(Directive):
7 def run(self):
8 content = StringList(
9 [
10 ".. note::",
11 " After calling this method you need to call the QUIC connection "
12 ":meth:`~aioquic.quic.connection.QuicConnection.datagrams_to_send` "
13 "method to retrieve data which needs to be sent over the network. "
14 "If you are using the :doc:`asyncio API <asyncio>`, calling the "
15 ":meth:`~aioquic.asyncio.QuicConnectionProtocol.transmit` method "
16 "will do it for you.",
17 ]
18 )
19 node = nodes.paragraph()
20 self.state.nested_parse(content, 0, node)
21 return [node]
22
23
24 def setup(app):
25 app.add_directive("aioquic_transmit", AioquicTransmit)
26
27 return {
28 "version": "0.1",
29 "parallel_read_safe": True,
30 "parallel_write_safe": True,
31 }