platform_external_selinux/policycoreutils/sepolicy
Jason Zaman 789d0ebbf9 policycoreutils: Fix PEP8 issues
When trying to get policycoreutils working in python3, I kept running
into TabErrors:

    Traceback (most recent call last):
      File "/usr/lib/python-exec/python3.3/semanage", line 27, in <module>
        import seobject
      File "/usr/lib64/python3.3/site-packages/seobject.py", line 154
        context = "%s%s" % (filler, raw)
                                       ^
    TabError: inconsistent use of tabs and spaces in indentation

Python3 is a lot stricter than python2 regarding whitespace and looks like
previous commits mixed the two.  When fixing this, I took the chance to fix
other PEP8 style issues at the same time.

This commit was made using:
$ file $(find . -type f) | grep -i python | sed 's/:.*$//' > pyfiles
$ autopep8 --in-place --ignore=E501,E265 $(cat pyfiles)

The ignore E501 is long lines since there are many that would be wrapped
otherwise, and E265 is block comments that start with ## instead of just #.

Signed-off-by: Jason Zaman <jason@perfinion.com>
2015-07-24 16:07:13 +08:00
..
sepolicy policycoreutils: Fix PEP8 issues 2015-07-24 16:07:13 +08:00
.gitignore These are massive changes involved in building new GUI. 2013-10-24 13:58:41 -04:00
common.h policycoreutils: sepolicy: new command to unite small utilities 2013-02-05 20:14:28 -05:00
info.c Add support to return sesitivities and cats for python bindings. 2013-11-08 15:51:52 -05:00
Makefile Use $(PYTHON) instead of "python" in every Makefile 2014-10-02 09:56:49 -04:00
org.selinux.conf These are massive changes involved in building new GUI. 2013-10-24 13:58:41 -04:00
org.selinux.policy org.selinux.policy: Require auth_admin_keep for all actions. 2015-04-16 09:40:31 -04:00
org.selinux.service These are massive changes involved in building new GUI. 2013-10-24 13:58:41 -04:00
policy.c Fix error when policy does not match the system. 2013-10-24 13:58:40 -04:00
policy.h policycoreutils: sepolicy: new command to unite small utilities 2013-02-05 20:14:28 -05:00
search.c policycoreutils: sepolicy: new command to unite small utilities 2013-02-05 20:14:28 -05:00
selinux_client.py policycoreutils: Fix PEP8 issues 2015-07-24 16:07:13 +08:00
selinux_server.py policycoreutils: Fix PEP8 issues 2015-07-24 16:07:13 +08:00
sepolgen.8 These are massive changes involved in building new GUI. 2013-10-24 13:58:41 -04:00
sepolicy-bash-completion.sh These are massive changes involved in building new GUI. 2013-10-24 13:58:41 -04:00
sepolicy-booleans.8 policycoreutils: sepolicy: new command to unite small utilities 2013-02-05 20:14:28 -05:00
sepolicy-communicate.8 policycoreutils: sepolicy: new command to unite small utilities 2013-02-05 20:14:28 -05:00
sepolicy-generate.8 Minor manpages improvements 2013-11-06 09:36:33 -05:00
sepolicy-gui.8 These are massive changes involved in building new GUI. 2013-10-24 13:58:41 -04:00
sepolicy-interface.8 These are massive changes involved in building new GUI. 2013-10-24 13:58:41 -04:00
sepolicy-manpage.8 These are massive changes involved in building new GUI. 2013-10-24 13:58:41 -04:00
sepolicy-network.8 These are massive changes involved in building new GUI. 2013-10-24 13:58:41 -04:00
sepolicy-transition.8 policycoreutils: sepolicy: new command to unite small utilities 2013-02-05 20:14:28 -05:00
sepolicy.8 These are massive changes involved in building new GUI. 2013-10-24 13:58:41 -04:00
sepolicy.desktop These are massive changes involved in building new GUI. 2013-10-24 13:58:41 -04:00
sepolicy.py policycoreutils: Fix PEP8 issues 2015-07-24 16:07:13 +08:00
sepolicy_16.png Add new icons for sepolicy gui 2013-11-13 11:07:17 -05:00
sepolicy_22.png Add new icons for sepolicy gui 2013-11-13 11:07:17 -05:00
sepolicy_32.png Add new icons for sepolicy gui 2013-11-13 11:07:17 -05:00
sepolicy_48.png Add new icons for sepolicy gui 2013-11-13 11:07:17 -05:00
sepolicy_256.png Add new icons for sepolicy gui 2013-11-13 11:07:17 -05:00
setup.py policycoreutils: Fix PEP8 issues 2015-07-24 16:07:13 +08:00
test_sepolicy.py policycoreutils: Fix PEP8 issues 2015-07-24 16:07:13 +08:00