summaryrefslogtreecommitdiffstats
path: root/debian/patches/0016-Update-shebangs.patch
blob: b7ed871995a0cd2376997840b71aeecc64037d40 (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
From: Neil Muller <drnlmuller+debian@gmail.com>
Date: Thu, 5 Sep 2019 18:08:51 +0200
Subject: Update shebangs

Change the shebangs to use python3 so we get the correct result
when we build the package.
---
 filter-example.py | 4 ++--
 filter-test.py    | 4 ++--
 irk               | 2 +-
 irkerd            | 2 +-
 irkerhook.py      | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/filter-example.py b/filter-example.py
index 12908b4..094d0b7 100755
--- a/filter-example.py
+++ b/filter-example.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # This is a trivial example of a metadata filter.
 # All it does is change the name of the commit's author.
 # It could do other things, including modifying the
@@ -9,5 +9,5 @@ metadata = json.loads(sys.argv[1])
 
 metadata['author'] = "The Great and Powerful Oz"
 
-print json.dumps(metadata)
+print(json.dumps(metadata))
 # end
diff --git a/filter-test.py b/filter-test.py
index 030d3d4..82c0660 100755
--- a/filter-test.py
+++ b/filter-test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # Test hook to launch an irker instance (if it doesn't already exist)
 # just before shipping the notification. We start it in in another terminal
@@ -31,5 +31,5 @@ else:
 
 time.sleep(1.5)	# Avoid a race condition
 
-print json.dumps(metadata)
+print(json.dumps(metadata))
 # end
diff --git a/irk b/irk
index fc9e153..22918d6 100755
--- a/irk
+++ b/irk
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # Illustrates how to test irkerd.
 #
 # First argument must be a channel URL. If it does not begin with "irc", 
diff --git a/irkerd b/irkerd
index d42f56e..92ff8b1 100755
--- a/irkerd
+++ b/irkerd
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """
 irkerd - a simple IRC multiplexer daemon
 
diff --git a/irkerhook.py b/irkerhook.py
index 661071b..bf697ab 100755
--- a/irkerhook.py
+++ b/irkerhook.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # Copyright (c) 2012 Eric S. Raymond <esr@thyrsus.com>
 # SPDX-License-Identifier: BSD-2-Clause
 #