summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorMathieu Bridon <[email protected]>2018-07-17 22:57:39 +0200
committerDylan Baker <[email protected]>2018-08-07 13:10:34 -0700
commite1b88aee680bbdadd283b4a26db74672bb130df5 (patch)
treeaa7b7026af801eae5202200e5ad10e861a543145 /src/compiler/nir
parent9b6746b7c0bef64be419c8cf2ecd916980e2718a (diff)
python: Fix rich comparisons
Python 3 doesn't call objects __cmp__() methods any more to compare them. Instead, it requires implementing the rich comparison methods explicitly: __eq__(), __ne(), __lt__(), __le__(), __gt__() and __ge__(). Fortunately Python 2 also supports those. This commit only implements the comparison methods which are actually used by the build scripts. Signed-off-by: Mathieu Bridon <[email protected]> Reviewed-by: Dylan Baker <[email protected]>
Diffstat (limited to 'src/compiler/nir')
0 files changed, 0 insertions, 0 deletions