Skip to content

Commit 994e224

Browse files
committed
Set default code formatting to shell-session, not Python
1 parent ecfda31 commit 994e224

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Doc/library/profiling-sampling.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. highlight:: shell-session
2+
13
.. _profiling-sampling:
24

35
***************************************************

Doc/library/profiling.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. highlight:: shell-session
2+
13
.. _profiling-module:
24

35
***************************************
@@ -176,7 +178,9 @@ To profile a script from the command line::
176178

177179
python -m profiling.tracing myscript.py
178180

179-
To profile a piece of code programmatically::
181+
To profile a piece of code programmatically:
182+
183+
.. code-block:: python
180184
181185
import profiling.tracing
182186
profiling.tracing.run('my_function()')

0 commit comments

Comments
 (0)