File: docs-Use-python3-instead-of-python.patch

package info (click to toggle)
python-pyinstrument 5.1.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,624 kB
  • sloc: python: 6,713; ansic: 897; makefile: 46; sh: 26; javascript: 18
file content (30 lines) | stat: -rw-r--r-- 1,149 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: Carsten Schoenert <c.schoenert@t-online.de>
Date: Sat, 31 May 2025 09:30:47 +0200
Subject: docs: Use python3 instead of python

Use 'python3' in the documentation example as using only 'python' isn't
usable now any more on Debian systems without additional preauction.
---
 docs/guide.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/guide.md b/docs/guide.md
index d376bc9..7e3616f 100644
--- a/docs/guide.md
+++ b/docs/guide.md
@@ -15,13 +15,13 @@ end-before: '<!-- MARK installation end -->'
 ## Profile a Python script
 
 Call Pyinstrument directly from the command line. Instead of writing
-`python script.py`, type `pyinstrument script.py`. Your script will run as
+`python3 script.py`, type `pyinstrument script.py`. Your script will run as
 normal, and at the end (or when you press `^C`), Pyinstrument will output a
 colored summary showing where most of the time was spent.
 
 Here are the options you can use:
 
-```{program-output} python -m pyinstrument --help
+```{program-output} python3 -m pyinstrument --help
 ```
 
 **Protip:** `-r html` will give you a interactive profile report as HTML - you