File: examples-Use-python3-in-shebang.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 (22 lines) | stat: -rw-r--r-- 804 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
From: Carsten Schoenert <c.schoenert@t-online.de>
Date: Fri, 6 Jun 2025 16:09:56 +0200
Subject: examples: Use python3 in shebang

The binary name of 'python' for calling the Python interpreter isn't
usable any more without additional adjustment of the users system. Be
more explicit and call python3 as the code is probabaly not usable with
Python2 in these days.
---
 examples/demo_scripts/django_example/manage.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/demo_scripts/django_example/manage.py b/examples/demo_scripts/django_example/manage.py
index f01778b..2adc649 100755
--- a/examples/demo_scripts/django_example/manage.py
+++ b/examples/demo_scripts/django_example/manage.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 import os
 import sys