File tree Expand file tree Collapse file tree 6 files changed +7
-6
lines changed Expand file tree Collapse file tree 6 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 39
39
("py:exc" , "Anything else" ),
40
40
]
41
41
autodoc_inherit_docstrings = False
42
+ default_role = "obj"
42
43
43
44
# XX hack the RTD theme until
44
45
# https://github.com/rtfd/sphinx_rtd_theme/pull/382
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ Features
109
109
also reexports all the stdlib :mod: `subprocess ` exceptions and constants for
110
110
convenience. (`#4 <https://github.com/python-trio/trio/issues/4 >`__)
111
111
- You can now create an unbounded :class: `CapacityLimiter ` by initializing with
112
- :obj: `math.inf ` (`#618 <https://github.com/python-trio/trio/issues/618 >`__)
112
+ `math.inf ` (`#618 <https://github.com/python-trio/trio/issues/618 >`__)
113
113
- New :mod: `trio.hazmat ` features to allow cleanly switching live coroutine
114
114
objects between Trio and other coroutine runners. Frankly, we're not even
115
115
sure this is a good idea, but we want to `try it out in trio-asyncio
@@ -238,7 +238,7 @@ Bugfixes
238
238
- Prevent crashes when used with Sentry (raven-python). (`#599
239
239
<https://github.com/python-trio/trio/issues/599> `__)
240
240
- The nursery context manager was rewritten to avoid use of
241
- `@asynccontextmanager ` and `@async_generator `. This reduces extraneous frames
241
+ `` @asynccontextmanager `` and `` @async_generator ` `. This reduces extraneous frames
242
242
in exception traces and addresses bugs regarding `StopIteration ` and
243
243
`StopAsyncIteration ` exceptions not propagating correctly. (`#612
244
244
<https://github.com/python-trio/trio/issues/612> `__)
Original file line number Diff line number Diff line change @@ -706,7 +706,7 @@ in Python there can only be one exception at a time.
706
706
Trio's answer is that it raises a :exc: `MultiError ` object. This is a
707
707
special exception which encapsulates multiple exception objects –
708
708
either regular exceptions or nested :exc: `MultiError `\s . To make these
709
- easier to work with, Trio installs a custom :obj: `sys.excepthook ` that
709
+ easier to work with, Trio installs a custom `sys.excepthook ` that
710
710
knows how to print nice tracebacks for unhandled :exc: `MultiError `\s ,
711
711
and it also provides some helpful utilities like
712
712
:meth: `MultiError.catch `, which allows you to catch "part of" a
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ def wrap_file(file):
181
181
file: a :term:`file object`
182
182
183
183
Returns:
184
- An :term:`asynchronous file object` that wraps `file`
184
+ An :term:`asynchronous file object` that wraps `` file` `
185
185
186
186
Example::
187
187
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ async def open_tcp_stream(
210
210
port (int): The port to connect to.
211
211
happy_eyeballs_delay (float): How many seconds to wait for each
212
212
connection attempt to succeed or fail before getting impatient and
213
- starting another one in parallel. Set to :obj: `math.inf` if you want
213
+ starting another one in parallel. Set to `math.inf` if you want
214
214
to limit to only one connection attempt at a time (like
215
215
:func:`socket.create_connection`). Default: 0.3 (300 ms).
216
216
Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ class SSLStream(Stream):
298
298
raises :exc:`NeedHandshakeError`.
299
299
300
300
This also means that if you register a SNI callback using
301
- :obj: `~ssl.SSLContext.sni_callback`, then the first argument your callback
301
+ `~ssl.SSLContext.sni_callback`, then the first argument your callback
302
302
receives will be a :class:`ssl.SSLObject`.
303
303
304
304
"""
You can’t perform that action at this time.
0 commit comments