From ead1e536d66d83b546528c32e2112085a97c8e13 Mon Sep 17 00:00:00 2001 From: Renato Botelho do Couto Date: Thu, 31 Oct 2019 13:31:07 -0500 Subject: misc: Fix python scripts shebang line Type: fix Since CentOS 8, RPM build script doesn't accept '#!/usr/bin/env python' as a valid shebang line. It requires scripts to explicitly chose between python2 or python3. Change all to use python3 as suggested by Paul Vinciguerra. Depends-On: https://gerrit.fd.io/r/23170 Signed-off-by: Renato Botelho do Couto Change-Id: Ie72af9f60fd0609e07f05b70f8d96e738b2754d1 --- src/plugins/map/examples/test_map.py | 2 +- src/plugins/map/gen-rules.py | 2 +- src/plugins/map/test/test_map.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/map') diff --git a/src/plugins/map/examples/test_map.py b/src/plugins/map/examples/test_map.py index 21388d49526..7a48964b3f2 100755 --- a/src/plugins/map/examples/test_map.py +++ b/src/plugins/map/examples/test_map.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import time,argparse,sys,cmd, unittest from ipaddress import * diff --git a/src/plugins/map/gen-rules.py b/src/plugins/map/gen-rules.py index 533a8e237f7..e43b8e155be 100755 --- a/src/plugins/map/gen-rules.py +++ b/src/plugins/map/gen-rules.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (c) 2015 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/src/plugins/map/test/test_map.py b/src/plugins/map/test/test_map.py index 866706a085c..a7e5f165576 100644 --- a/src/plugins/map/test/test_map.py +++ b/src/plugins/map/test/test_map.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import ipaddress import unittest -- cgit 1.2.3-korg