summaryrefslogtreecommitdiff
path: root/gbp/tristate.py
AgeCommit message (Collapse)Author
2015-02-20tristate: implement __nonzero__() methodMarkus Lehtonen
Returns False if tristate is 'off', otherwise True ('on' or 'auto'). Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-08-22Minor docstring updatesGuido Günther
2012-11-27Tristate: drop broken and unused is_valid_state() methodMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-11-27Tristate: allow to init from another Tristate objectMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-01-22tristate: fix __repr__Guido Günther
and add doctest
2011-01-08Use tristate option for --color=valueGuido Günther
this allows true and false as alias for on and off.
2011-01-08Add Tristate class that allows for on, off and autoGuido Günther
Git-Dch: Ignore