commit | 4fa56fe2f8618f5fbc47ec21ac033d5e7ac2790d | [log] [tgz] |
---|---|---|
author | Andreas Sandberg <andreas.sandberg@arm.com> | Sat Jan 26 10:51:29 2019 +0000 |
committer | Andreas Sandberg <andreas.sandberg@arm.com> | Wed Feb 20 18:27:10 2019 +0000 |
tree | 193b59ca73e7c7a512ec7517320cd8cda57e533d | |
parent | d07cceb13e13cfe806c37527e602cde0789ea8c3 [diff] |
python: Add __bool__ helpers in addition to __nonzero__ Python 3 uses __bool__ instead of __nonzero__ when performing a Boolean comparison. Change-Id: I85185bbe136ecae67346fa23569e24edd7329222 Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/15996 Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>