tristate: implement __nonzero__() method
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Mon, 2 Jun 2014 07:14:52 +0000 (10:14 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 14 Nov 2014 12:21:53 +0000 (14:21 +0200)
commit96360f27eaa09388287e2e43ec557e489617fb91
tree84797a634f750a4a838d0507b59ee56b2fab8839
parente68d566248dbd8d58a15bf72af0272e1886452cb
tristate: implement __nonzero__() method

Returns False if tristate is 'off', otherwise True ('on' or 'auto').

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/tristate.py