Skip to content

Commit e3ed03c

Browse files
committed
Fix references
1 parent 6f635e6 commit e3ed03c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Doc/library/profiling-tracing.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ directly.
123123
Basic profiling
124124
---------------
125125

126-
The simplest approach uses the :func:`run` function::
126+
The simplest approach uses the :func:`!run` function::
127127

128128
import profiling.tracing
129129
profiling.tracing.run('my_function()')
@@ -134,10 +134,10 @@ To save results for later analysis::
134134
profiling.tracing.run('my_function()', 'output.prof')
135135

136136

137-
Using the Profile Class
138-
-----------------------
137+
Using the :class:`!Profile` class
138+
---------------------------------
139139

140-
The :class:`Profile` class provides fine-grained control::
140+
The :class:`!Profile` class provides fine-grained control::
141141

142142
import profiling.tracing
143143
import pstats
@@ -154,7 +154,7 @@ The :class:`Profile` class provides fine-grained control::
154154
ps.print_stats()
155155
print(s.getvalue())
156156

157-
The :class:`Profile` class also works as a context manager::
157+
The :class:`!Profile` class also works as a context manager::
158158

159159
import profiling.tracing
160160

Doc/whatsnew/3.8.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1727,7 +1727,7 @@ Deprecated
17271727
* Deprecated passing the following arguments as keyword arguments:
17281728

17291729
- *func* in :func:`functools.partialmethod`, :func:`weakref.finalize`,
1730-
:meth:`profile.Profile.runcall`, :meth:`cProfile.Profile.runcall`,
1730+
:meth:`profile.Profile.runcall`, :meth:`!cProfile.Profile.runcall`,
17311731
:meth:`bdb.Bdb.runcall`, :meth:`trace.Trace.runfunc` and
17321732
:func:`curses.wrapper`.
17331733
- *function* in :meth:`unittest.TestCase.addCleanup`.

0 commit comments

Comments
 (0)