commit | f6e7613bd3196639edc9ec3cc6ca3e84a6960fcd | [log] [tgz] |
---|---|---|
author | Nicolas Iooss <nicolas.iooss@m4x.org> | Sat Aug 04 11:03:14 2018 +0200 |
committer | Nicolas Iooss <nicolas.iooss@m4x.org> | Mon Aug 06 22:06:48 2018 +0200 |
tree | b0ba00581742dedc6b8c44588e48894bace6bd27 | |
parent | b12e246739fc06241a28b935fa5e0684d725226c [diff] |
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>