Skip to content

Replace __nonzero__ by __bool__ for Python 3

Peter Onyisi requested to merge ponyisi/athena:master-py3-nonzero-to-bool into master

With one exception (which should be fixed by the sweep of !57187 (merged)), replace __nonzero__ in Python code by __bool__ . In Python 3 __nonzero__ does nothing, so code relying on this behavior has been broken if equivalent __bool__ was not implemented, and master does not need to maintain Py2 compatibility any more.

Merge request reports