use public 'value'

This commit is contained in:
Ethan Furman 2016-01-16 12:39:53 -08:00
parent 51578c0c98
commit 2ae4ea54a2

View file

@ -754,7 +754,7 @@ Enum's boolean evaluation depend on the member's value add the following to
your class::
def __bool__(self):
return bool(self._value_)
return bool(self.value)
The :attr:`__members__` attribute is only available on the class.