summaryrefslogtreecommitdiffstats
path: root/debian/patches/0015-Update-irkerhook-documentation-to-python-3.patch
blob: 0b1b1a8c4b0ddf9170d5d2283a088df190d0e237 (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
From: Neil Muller <drnlmuller+debian@gmail.com>
Date: Thu, 5 Sep 2019 18:08:11 +0200
Subject: Update irkerhook documentation to python 3

Change the example program to use python3 in the irkerhook
documentation.
---
 irkerhook.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/irkerhook.xml b/irkerhook.xml
index 2160166..77b5d9f 100644
--- a/irkerhook.xml
+++ b/irkerhook.xml
@@ -365,7 +365,7 @@ representation of (possibly altered) metadata.</para>
 <para>Below is an example filter:</para>
 
 <programlisting>
-#!/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.
 # 
@@ -374,7 +374,7 @@ metadata = json.loads(sys.argv[1])
 
 metadata['author'] = "The Great and Powerful Oz"
 
-print json.dumps(metadata)
+print(json.dumps(metadata))
 # end
 </programlisting>