commit | 15a7553d2274a351fb1098f7bfab86346c5a04b8 | [log] [tgz] |
---|---|---|
author | Robert Kuska <rkuska@redhat.com> | Thu Jul 16 13:48:19 2015 +0200 |
committer | Stephen Smalley <sds@tycho.nsa.gov> | Thu Jul 16 13:06:03 2015 -0400 |
tree | 830e4f0164faa15d057d1c9531ed4e9ad1b549b8 | |
parent | c2ecb8e3ec41c24dc616d97d345b869fb59a433a [diff] |
sepolgen: Apply fixes discovered by 2to3 where needed. Replace usage of print statement with print function. Use `in` instead of `has_key` when checking for key in dict. When using `raise` add text (if any) as parameter of exception function. Add Python3 imports of moved modules. Replace `map` with list comprehension. Use reserved word `as` in try-except when catching exception. Replace `ifilter` function with `filter`. Signed-off-by: Robert Kuska <rkuska@redhat.com>