From: Neil Muller 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 # SPDX-License-Identifier: BSD-2-Clause #