Debian Codegraph @

debian/patches/demos-use-python3-shebang.patch

raw
1 From: Agathe Porte <[email protected]>
2 Date: Sat, 26 Aug 2023 12:11:35 +0200
3 Subject: demos: use python3 shebang
4
5 The shebang used in the examples is based on classical Python2, fixing
6 by replacing with a usable one.
7 ---
8 demos/demo01.py | 2 +-
9 demos/demo02.py | 2 +-
10 demos/demo03.py | 2 +-
11 demos/demo04.py | 2 +-
12 demos/demo05.py | 2 +-
13 5 files changed, 5 insertions(+), 5 deletions(-)
14
15 diff --git a/demos/demo01.py b/demos/demo01.py
16 index c367024..d1f2d7e 100644
17 --- a/demos/demo01.py
18 +++ b/demos/demo01.py
19 @@ -1,4 +1,4 @@
20 -#!/usr/bin/python
21 +#!/usr/bin/python3
22 # Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file.
23
24 # print grid of all colors and brightnesses
25 diff --git a/demos/demo02.py b/demos/demo02.py
26 index 8ca7d4b..5cb0b2c 100644
27 --- a/demos/demo02.py
28 +++ b/demos/demo02.py
29 @@ -1,4 +1,4 @@
30 -#!/usr/bin/python
31 +#!/usr/bin/python3
32 # Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file.
33
34 # Simple demo of changing foreground, background and brightness.
35 diff --git a/demos/demo03.py b/demos/demo03.py
36 index 13d5f9e..800378c 100644
37 --- a/demos/demo03.py
38 +++ b/demos/demo03.py
39 @@ -1,4 +1,4 @@
40 -#!/usr/bin/python
41 +#!/usr/bin/python3
42 # Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file.
43
44 # Demonstrate the different behavior when autoreset is True and False.
45 diff --git a/demos/demo04.py b/demos/demo04.py
46 index 1dc20dc..fbfa05a 100644
47 --- a/demos/demo04.py
48 +++ b/demos/demo04.py
49 @@ -1,4 +1,4 @@
50 -#!/usr/bin/python
51 +#!/usr/bin/python3
52 # Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file.
53
54 # check that stripped ANSI in redirected stderr does not affect stdout
55 diff --git a/demos/demo05.py b/demos/demo05.py
56 index 284701b..c276a89 100644
57 --- a/demos/demo05.py
58 +++ b/demos/demo05.py
59 @@ -1,4 +1,4 @@
60 -#!/usr/bin/python
61 +#!/usr/bin/python3
62 # Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file.
63
64 # Demonstrate the difference between colorama initialized with wrapping on and off.