Message ID | 20190924194637.248190-1-plautrba@redhat.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | Switch last 2 files using /usr/bin/env to /usr/bin/python3 | expand |
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> >
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>
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(-)