selinux/policycoreutils/semanage
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
..
Makefile Use $(PYTHON) instead of "python" in every Makefile 2014-10-02 09:56:49 -04:00
semanage policycoreutils: Fix PEP8 issues 2015-07-24 16:07:13 +08:00
semanage-bash-completion.sh Fix lots of bugs in the bash completion script. 2013-10-24 13:58:40 -04:00
semanage-boolean.8 Minor manpages improvements 2013-11-06 09:36:33 -05:00
semanage-dontaudit.8 Minor manpages improvements 2013-11-06 09:36:33 -05:00
semanage-export.8 Minor manpages improvements 2013-11-06 09:36:33 -05:00
semanage-fcontext.8 Minor manpages improvements 2013-11-06 09:36:33 -05:00
semanage-import.8 Minor manpages improvements 2013-11-06 09:36:33 -05:00
semanage-interface.8 Minor manpages improvements 2013-11-06 09:36:33 -05:00
semanage-login.8 Minor manpages improvements 2013-11-06 09:36:33 -05:00
semanage-module.8 Minor manpages improvements 2013-11-06 09:36:33 -05:00
semanage-node.8 Minor manpages improvements 2013-11-06 09:36:33 -05:00
semanage-permissive.8 Minor manpages improvements 2013-11-06 09:36:33 -05:00
semanage-port.8 typo in semanage-port.8 2015-02-25 08:29:08 -05:00
semanage-user.8 Minor manpages improvements 2013-11-06 09:36:33 -05:00
semanage.8 Minor manpages improvements 2013-11-06 09:36:33 -05:00
seobject.py policycoreutils: Fix PEP8 issues 2015-07-24 16:07:13 +08:00
test-semanage.py policycoreutils: Fix PEP8 issues 2015-07-24 16:07:13 +08:00