mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-28 00:03:04 +00:00
789d0ebbf9
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> |
||
---|---|---|
.. | ||
sepolicy | ||
.gitignore | ||
common.h | ||
info.c | ||
Makefile | ||
org.selinux.conf | ||
org.selinux.policy | ||
org.selinux.service | ||
policy.c | ||
policy.h | ||
search.c | ||
selinux_client.py | ||
selinux_server.py | ||
sepolgen.8 | ||
sepolicy_16.png | ||
sepolicy_22.png | ||
sepolicy_32.png | ||
sepolicy_48.png | ||
sepolicy_256.png | ||
sepolicy-bash-completion.sh | ||
sepolicy-booleans.8 | ||
sepolicy-communicate.8 | ||
sepolicy-generate.8 | ||
sepolicy-gui.8 | ||
sepolicy-interface.8 | ||
sepolicy-manpage.8 | ||
sepolicy-network.8 | ||
sepolicy-transition.8 | ||
sepolicy.8 | ||
sepolicy.desktop | ||
sepolicy.py | ||
setup.py | ||
test_sepolicy.py |