platform_external_selinux/python/semanage
Nicolas Iooss f6e7613bd3
python/semanage: fix Python syntax of catching several exceptions
"except OSError, ImportError:" does not perform what it says: it is the
Python 2 syntax of catching OSError exceptions as "ImportError" (like
"except OSError, e:"), and this is indeed caught by Python3:

      File "./python/semanage/seobject.py", line 143
        except OSError, ImportError:
                      ^
    SyntaxError: invalid syntax

The correct syntax consists in using parentheses.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2018-08-06 22:06:48 +02:00
..
Makefile python: build: move modules from platform-specific to platform-shared 2018-02-14 20:02:02 +01:00
semanage python/semanage: Enforce noreload only if it's requested by -N option 2017-11-08 14:56:20 +08:00
semanage-bash-completion.sh Minor update for bash completion. Bash completion for ports is missing '-' for type. Based on documentation, it should be --type, not -type. 2018-02-26 09:33:19 -05:00
semanage-boolean.8 policycoreutils, python: Fix bad manpage formatting in "SEE ALSO" 2017-01-12 14:59:31 -05:00
semanage-dontaudit.8 policycoreutils, python: Fix bad manpage formatting in "SEE ALSO" 2017-01-12 14:59:31 -05:00
semanage-export.8 policycoreutils, python: Fix bad manpage formatting in "SEE ALSO" 2017-01-12 14:59:31 -05:00
semanage-fcontext.8 policycoreutils, python: Fix bad manpage formatting in "SEE ALSO" 2017-01-12 14:59:31 -05:00
semanage-ibendport.8 semanage: Fix manpage author for ibpkey and ibendport pages. 2017-05-30 09:40:33 -04:00
semanage-ibpkey.8 semanage: Fix manpage author for ibpkey and ibendport pages. 2017-05-30 09:40:33 -04:00
semanage-import.8 Move policycoreutils/{sepolicy,audit2allow,semanage,scripts/chcat*} and sepolgen to python. 2016-11-16 11:19:50 -05:00
semanage-interface.8 policycoreutils, python: Fix bad manpage formatting in "SEE ALSO" 2017-01-12 14:59:31 -05:00
semanage-login.8 policycoreutils, python: Fix bad manpage formatting in "SEE ALSO" 2017-01-12 14:59:31 -05:00
semanage-module.8 policycoreutils, python: Fix bad manpage formatting in "SEE ALSO" 2017-01-12 14:59:31 -05:00
semanage-node.8 Move policycoreutils/{sepolicy,audit2allow,semanage,scripts/chcat*} and sepolgen to python. 2016-11-16 11:19:50 -05:00
semanage-permissive.8 policycoreutils, python: Fix bad manpage formatting in "SEE ALSO" 2017-01-12 14:59:31 -05:00
semanage-port.8 policycoreutils, python: Fix bad manpage formatting in "SEE ALSO" 2017-01-12 14:59:31 -05:00
semanage-user.8 policycoreutils, python: Fix bad manpage formatting in "SEE ALSO" 2017-01-12 14:59:31 -05:00
semanage.8 semanage: Update man pages for infiniband 2017-05-23 16:20:55 -04:00
seobject.py python/semanage: fix Python syntax of catching several exceptions 2018-08-06 22:06:48 +02:00
test-semanage.py semanage, sepolicy: make tests not fail on systems without SELinux 2017-01-17 16:48:46 -05:00