[PATCH 0/2] Bug fixes for libsemanage/src/pywrap-test.py

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

While working on porting to Python scripts in sepolgen and
policycoreutils to Python 3, I found libsemanage/src/pywrap-test.py.
As this script is written in Python 2, I tried to make it compatible
with Python 3 too.  However there are at least two problems:

* The current script bugs when asked to perform all tests in verbose
mode. Here are two patches to fix the script.  Can you review and
apply them?

* The file indentation mixes tabs and spaces.  Python 2 understands
such a thing but Python 3 only supports indenting with tabs or spaces
but not both.  How should the scripts be indented?

Nicolas Iooss (2):
  libsemanage: fix src/pywrap-test.py -v -F
  libsemanage: use semanage_bool_get_value to print a boolean

 libsemanage/src/pywrap-test.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

-- 
2.0.0

_______________________________________________
Selinux mailing list
Selinux@xxxxxxxxxxxxx
To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.




[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux