SELinux Archive on lore.kernel.org
 help / color / 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	[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, back to index

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

SELinux Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/selinux/0 selinux/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 selinux selinux/ https://lore.kernel.org/selinux \
		selinux@vger.kernel.org selinux@archiver.kernel.org
	public-inbox-index selinux

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.selinux


AGPL code for this site: git clone https://public-inbox.org/ public-inbox