diff mbox series

[1/3] Always use /usr/bin/python3 in Python scripts

Message ID 20190220160446.23150-2-plautrba@redhat.com (mailing list archive)
State Accepted
Headers show
Series [1/3] Always use /usr/bin/python3 in Python scripts | expand

Commit Message

Petr Lautrbach Feb. 20, 2019, 4:04 p.m. UTC
Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
---
 dbus/selinux_server.py                   | 2 +-
 libsemanage/utils/semanage_migrate_store | 2 +-
 mcstrans/share/util/mlscolor-test        | 2 +-
 mcstrans/share/util/mlstrans-test        | 2 +-
 python/semanage/semanage                 | 2 +-
 sandbox/start                            | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

Comments

Nicolas Iooss Feb. 21, 2019, 8:17 p.m. UTC | #1
On Wed, Feb 20, 2019 at 5:04 PM Petr Lautrbach <plautrba@redhat.com> wrote:
>
> Signed-off-by: Petr Lautrbach <plautrba@redhat.com>

For the 3 patches:
Acked-by: Nicolas Iooss <nicolas.iooss@m4x.org>

> ---
>  dbus/selinux_server.py                   | 2 +-
>  libsemanage/utils/semanage_migrate_store | 2 +-
>  mcstrans/share/util/mlscolor-test        | 2 +-
>  mcstrans/share/util/mlstrans-test        | 2 +-
>  python/semanage/semanage                 | 2 +-
>  sandbox/start                            | 2 +-
>  6 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/dbus/selinux_server.py b/dbus/selinux_server.py
> index 6e380e58..98ab53dd 100644
> --- a/dbus/selinux_server.py
> +++ b/dbus/selinux_server.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/python
> +#!/usr/bin/python3
>
>  import dbus
>  import dbus.service
> diff --git a/libsemanage/utils/semanage_migrate_store b/libsemanage/utils/semanage_migrate_store
> index 018b1a3e..c6caf3bf 100755
> --- a/libsemanage/utils/semanage_migrate_store
> +++ b/libsemanage/utils/semanage_migrate_store
> @@ -1,4 +1,4 @@
> -#!/usr/bin/python -E
> +#!/usr/bin/python3 -E
>
>
>  from __future__ import print_function
> diff --git a/mcstrans/share/util/mlscolor-test b/mcstrans/share/util/mlscolor-test
> index 03fc4be4..240e996d 100644
> --- a/mcstrans/share/util/mlscolor-test
> +++ b/mcstrans/share/util/mlscolor-test
> @@ -1,4 +1,4 @@
> -#!/usr/bin/python -E
> +#!/usr/bin/python3 -E
>  import sys
>  import selinux
>
> diff --git a/mcstrans/share/util/mlstrans-test b/mcstrans/share/util/mlstrans-test
> index c026d00e..085fa82d 100644
> --- a/mcstrans/share/util/mlstrans-test
> +++ b/mcstrans/share/util/mlstrans-test
> @@ -1,4 +1,4 @@
> -#!/usr/bin/python -E
> +#!/usr/bin/python3 -E
>  import sys
>  import selinux
>
> diff --git a/python/semanage/semanage b/python/semanage/semanage
> index d6d68248..144cc000 100644
> --- a/python/semanage/semanage
> +++ b/python/semanage/semanage
> @@ -1,4 +1,4 @@
> -#! /usr/bin/python3 -Es
> +#!/usr/bin/python3 -Es
>  # Copyright (C) 2012-2013 Red Hat
>  # AUTHOR: Miroslav Grepl <mgrepl@redhat.com>
>  # AUTHOR: David Quigley <selinux@davequigley.com>
> diff --git a/sandbox/start b/sandbox/start
> index 7f83532f..4ed3cb5c 100644
> --- a/sandbox/start
> +++ b/sandbox/start
> @@ -1,4 +1,4 @@
> -#! /usr/bin/python -Es
> +#!/usr/bin/python3 -Es
>  try:
>      from subprocess import getstatusoutput
>  except ImportError:
> --
> 2.20.1
>
Petr Lautrbach Feb. 26, 2019, 1:21 p.m. UTC | #2
Nicolas Iooss <nicolas.iooss@m4x.org> writes:

> On Wed, Feb 20, 2019 at 5:04 PM Petr Lautrbach <plautrba@redhat.com> wrote:
>>
>> Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
>
> For the 3 patches:
> Acked-by: Nicolas Iooss <nicolas.iooss@m4x.org>

Merged.

>> ---
>>  dbus/selinux_server.py                   | 2 +-
>>  libsemanage/utils/semanage_migrate_store | 2 +-
>>  mcstrans/share/util/mlscolor-test        | 2 +-
>>  mcstrans/share/util/mlstrans-test        | 2 +-
>>  python/semanage/semanage                 | 2 +-
>>  sandbox/start                            | 2 +-
>>  6 files changed, 6 insertions(+), 6 deletions(-)
>>
>> diff --git a/dbus/selinux_server.py b/dbus/selinux_server.py
>> index 6e380e58..98ab53dd 100644
>> --- a/dbus/selinux_server.py
>> +++ b/dbus/selinux_server.py
>> @@ -1,4 +1,4 @@
>> -#!/usr/bin/python
>> +#!/usr/bin/python3
>>
>>  import dbus
>>  import dbus.service
>> diff --git a/libsemanage/utils/semanage_migrate_store b/libsemanage/utils/semanage_migrate_store
>> index 018b1a3e..c6caf3bf 100755
>> --- a/libsemanage/utils/semanage_migrate_store
>> +++ b/libsemanage/utils/semanage_migrate_store
>> @@ -1,4 +1,4 @@
>> -#!/usr/bin/python -E
>> +#!/usr/bin/python3 -E
>>
>>
>>  from __future__ import print_function
>> diff --git a/mcstrans/share/util/mlscolor-test b/mcstrans/share/util/mlscolor-test
>> index 03fc4be4..240e996d 100644
>> --- a/mcstrans/share/util/mlscolor-test
>> +++ b/mcstrans/share/util/mlscolor-test
>> @@ -1,4 +1,4 @@
>> -#!/usr/bin/python -E
>> +#!/usr/bin/python3 -E
>>  import sys
>>  import selinux
>>
>> diff --git a/mcstrans/share/util/mlstrans-test b/mcstrans/share/util/mlstrans-test
>> index c026d00e..085fa82d 100644
>> --- a/mcstrans/share/util/mlstrans-test
>> +++ b/mcstrans/share/util/mlstrans-test
>> @@ -1,4 +1,4 @@
>> -#!/usr/bin/python -E
>> +#!/usr/bin/python3 -E
>>  import sys
>>  import selinux
>>
>> diff --git a/python/semanage/semanage b/python/semanage/semanage
>> index d6d68248..144cc000 100644
>> --- a/python/semanage/semanage
>> +++ b/python/semanage/semanage
>> @@ -1,4 +1,4 @@
>> -#! /usr/bin/python3 -Es
>> +#!/usr/bin/python3 -Es
>>  # Copyright (C) 2012-2013 Red Hat
>>  # AUTHOR: Miroslav Grepl <mgrepl@redhat.com>
>>  # AUTHOR: David Quigley <selinux@davequigley.com>
>> diff --git a/sandbox/start b/sandbox/start
>> index 7f83532f..4ed3cb5c 100644
>> --- a/sandbox/start
>> +++ b/sandbox/start
>> @@ -1,4 +1,4 @@
>> -#! /usr/bin/python -Es
>> +#!/usr/bin/python3 -Es
>>  try:
>>      from subprocess import getstatusoutput
>>  except ImportError:
>> --
>> 2.20.1
>>
diff mbox series

Patch

diff --git a/dbus/selinux_server.py b/dbus/selinux_server.py
index 6e380e58..98ab53dd 100644
--- a/dbus/selinux_server.py
+++ b/dbus/selinux_server.py
@@ -1,4 +1,4 @@ 
-#!/usr/bin/python
+#!/usr/bin/python3
 
 import dbus
 import dbus.service
diff --git a/libsemanage/utils/semanage_migrate_store b/libsemanage/utils/semanage_migrate_store
index 018b1a3e..c6caf3bf 100755
--- a/libsemanage/utils/semanage_migrate_store
+++ b/libsemanage/utils/semanage_migrate_store
@@ -1,4 +1,4 @@ 
-#!/usr/bin/python -E
+#!/usr/bin/python3 -E
 
 
 from __future__ import print_function
diff --git a/mcstrans/share/util/mlscolor-test b/mcstrans/share/util/mlscolor-test
index 03fc4be4..240e996d 100644
--- a/mcstrans/share/util/mlscolor-test
+++ b/mcstrans/share/util/mlscolor-test
@@ -1,4 +1,4 @@ 
-#!/usr/bin/python -E
+#!/usr/bin/python3 -E
 import sys
 import selinux
 
diff --git a/mcstrans/share/util/mlstrans-test b/mcstrans/share/util/mlstrans-test
index c026d00e..085fa82d 100644
--- a/mcstrans/share/util/mlstrans-test
+++ b/mcstrans/share/util/mlstrans-test
@@ -1,4 +1,4 @@ 
-#!/usr/bin/python -E
+#!/usr/bin/python3 -E
 import sys
 import selinux
 
diff --git a/python/semanage/semanage b/python/semanage/semanage
index d6d68248..144cc000 100644
--- a/python/semanage/semanage
+++ b/python/semanage/semanage
@@ -1,4 +1,4 @@ 
-#! /usr/bin/python3 -Es
+#!/usr/bin/python3 -Es
 # Copyright (C) 2012-2013 Red Hat
 # AUTHOR: Miroslav Grepl <mgrepl@redhat.com>
 # AUTHOR: David Quigley <selinux@davequigley.com>
diff --git a/sandbox/start b/sandbox/start
index 7f83532f..4ed3cb5c 100644
--- a/sandbox/start
+++ b/sandbox/start
@@ -1,4 +1,4 @@ 
-#! /usr/bin/python -Es
+#!/usr/bin/python3 -Es
 try:
     from subprocess import getstatusoutput
 except ImportError: