commit | aa903a27ba44b835e037adc1ef2c3d92dac34a0d | [log] [tgz] |
---|---|---|
author | Robert Kuska <rkuska@redhat.com> | Thu Jul 16 13:48:16 2015 +0200 |
committer | Stephen Smalley <sds@tycho.nsa.gov> | Thu Jul 16 13:06:02 2015 -0400 |
tree | a26af1511a70a47cc1e7d51b3a315f78a4faea80 | |
parent | aee172010aacf8963fa4e56d3a973a2771b0859d [diff] |
sepolgen: Replace usage of __cmp__ with rich comparison. In Python3 the __cmp__ function is removed, and rich comparison should be used instead. Also the cmp function is gone in Python3 therefore it is reimplemented in util.py and used if running on Python3. Signed-off-by: Robert Kuska <rkuska@redhat.com>