Skip to content

Commit e7fab86

Browse files
committed
Fix doc references?
1 parent daa752d commit e7fab86

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Doc/library/exceptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ The following exceptions are used mostly as base classes for other exceptions.
168168
applications with complicated exception chains and exception groups it be
169169
used to help visualize what happened when. The value will be 0 if a time
170170
was not recorded as is the case on :exc:`StopIteration` and
171-
:exc:`AsyncStopIteration`.
171+
:exc:`StopAsyncIteration`.
172172

173173
.. versionadded:: next
174174

Doc/using/cmdline.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,10 +1228,10 @@ conflict.
12281228
exception. The values control the format of the timestamp. ``us`` or ``1``
12291229
displays decimal timestamps with microsecond precision, ``ns`` displays the
12301230
nanosecond timestamp as :func:`time.time_ns` would produce, ``iso`` enables
1231-
display formatted by :func:`datetime.isoformat`. The time is not recorded
1232-
on the :exc:`StopIteration` family of exceptions for performance reasons as
1233-
those are used for control flow rather than errors. If unset, empty or other
1234-
values this feature is disabled.
1231+
display formatted by :meth:`~datetime.datetime.isoformat`. The time is not
1232+
recorded on the :exc:`StopIteration` family of exceptions for performance
1233+
reasons as those are used for control flow rather than errors. If unset,
1234+
empty or other values this feature is disabled.
12351235

12361236
Timestamps are collected as nanoseconds internally when exceptions are
12371237
instantiated and are available via a :attr:`~BaseException.__timestamp_ns__`

0 commit comments

Comments
 (0)