blob: a8be7d81d65ab532927c4ed81926cca5a72e0631 [file] [log] [blame]
Andrew Geisslerf103a7f2021-05-07 16:09:40 -05001From b64fcc414316592968f181c85447cfd01d1e461e Mon Sep 17 00:00:00 2001
2From: Yi Fan Yu <yifan.yu@windriver.com>
3Date: Thu, 15 Apr 2021 13:48:19 -0400
4Subject: [PATCH] *.py: s/python/python3/ (exclude tests)
5
6As stated by https://github.com/syslog-ng/syslog-ng/pull/3603
7python2 is EOL.
8
9Fix all shebangs calling python instead of python3
10except the tests.
11
12(correcting lib/merge-grammar.py)
13Signed-off-by: Joe Slater <joe.slater@windriver.com>
14(adding the rest)
15Upstream-Status: Submitted [https://github.com/syslog-ng/syslog-ng/pull/3647]
16
17Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
18---
19 contrib/scripts/config-graph-json-to-dot.py | 2 +-
20 lib/merge-grammar.py | 2 +-
21 modules/python/pylib/setup.py | 2 +-
22 3 files changed, 3 insertions(+), 3 deletions(-)
23
24diff --git a/contrib/scripts/config-graph-json-to-dot.py b/contrib/scripts/config-graph-json-to-dot.py
25index 4955c81..0351a9a 100755
26--- a/contrib/scripts/config-graph-json-to-dot.py
27+++ b/contrib/scripts/config-graph-json-to-dot.py
28@@ -1,4 +1,4 @@
29-#!/usr/bin/env python
30+#!/usr/bin/env python3
31 import json, sys
32
33 j = None
34diff --git a/lib/merge-grammar.py b/lib/merge-grammar.py
35index 7313ff5..459712d 100755
36--- a/lib/merge-grammar.py
37+++ b/lib/merge-grammar.py
38@@ -1,4 +1,4 @@
39-#!/usr/bin/env python
40+#!/usr/bin/env python3
41 #############################################################################
42 # Copyright (c) 2010-2017 Balabit
43 #
44diff --git a/modules/python/pylib/setup.py b/modules/python/pylib/setup.py
45index 23bb5cc..a2fa05e 100755
46--- a/modules/python/pylib/setup.py
47+++ b/modules/python/pylib/setup.py
48@@ -1,4 +1,4 @@
49-#!/usr/bin/env python
50+#!/usr/bin/env python3
51 #############################################################################
52 # Copyright (c) 2015-2016 Balabit
53 #