selinux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Switch last 2 files using /usr/bin/env to /usr/bin/python3
@ 2019-09-24 19:46 Petr Lautrbach
  2019-09-26 12:55 ` Stephen Smalley
  0 siblings, 1 reply; 2+ messages in thread
From: Petr Lautrbach @ 2019-09-24 19:46 UTC (permalink / raw)
  To: selinux; +Cc: Petr Lautrbach

Other python scripts already use python3 by default. Both files don't have exec
bits so they have to be run using python interpret on command line anyway:

    $ python3 ./setup.py ...

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
---
 libsemanage/src/pywrap-test.py | 2 +-
 python/sepolicy/setup.py       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libsemanage/src/pywrap-test.py b/libsemanage/src/pywrap-test.py
index 5ac48f40..f266f700 100644
--- a/libsemanage/src/pywrap-test.py
+++ b/libsemanage/src/pywrap-test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 from __future__ import print_function
 
 import sys
diff --git a/python/sepolicy/setup.py b/python/sepolicy/setup.py
index 4bd8353d..3633c127 100644
--- a/python/sepolicy/setup.py
+++ b/python/sepolicy/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 
 # Author: Thomas Liu <tliu@redhat.com>
 # Author: Dan Walsh <dwalsh@redhat.com>
-- 
2.23.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Switch last 2 files using /usr/bin/env to /usr/bin/python3
  2019-09-24 19:46 [PATCH] Switch last 2 files using /usr/bin/env to /usr/bin/python3 Petr Lautrbach
@ 2019-09-26 12:55 ` Stephen Smalley
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Smalley @ 2019-09-26 12:55 UTC (permalink / raw)
  To: Petr Lautrbach, selinux

On 9/24/19 3:46 PM, Petr Lautrbach wrote:
> Other python scripts already use python3 by default. Both files don't have exec
> bits so they have to be run using python interpret on command line anyway:
> 
>      $ python3 ./setup.py ...
> 
> Signed-off-by: Petr Lautrbach <plautrba@redhat.com>

Thanks, applied.

> ---
>   libsemanage/src/pywrap-test.py | 2 +-
>   python/sepolicy/setup.py       | 2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libsemanage/src/pywrap-test.py b/libsemanage/src/pywrap-test.py
> index 5ac48f40..f266f700 100644
> --- a/libsemanage/src/pywrap-test.py
> +++ b/libsemanage/src/pywrap-test.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/env python
> +#!/usr/bin/python3
>   from __future__ import print_function
>   
>   import sys
> diff --git a/python/sepolicy/setup.py b/python/sepolicy/setup.py
> index 4bd8353d..3633c127 100644
> --- a/python/sepolicy/setup.py
> +++ b/python/sepolicy/setup.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/env python
> +#!/usr/bin/python3
>   
>   # Author: Thomas Liu <tliu@redhat.com>
>   # Author: Dan Walsh <dwalsh@redhat.com>
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-26 12:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-24 19:46 [PATCH] Switch last 2 files using /usr/bin/env to /usr/bin/python3 Petr Lautrbach
2019-09-26 12:55 ` Stephen Smalley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).