]> granicus.if.org Git - python/commitdiff
use public 'value'
authorEthan Furman <ethan@stoneleaf.us>
Sat, 16 Jan 2016 20:39:53 +0000 (12:39 -0800)
committerEthan Furman <ethan@stoneleaf.us>
Sat, 16 Jan 2016 20:39:53 +0000 (12:39 -0800)
Doc/library/enum.rst

index 377ac3e245091ffdb8b6ce86444ee7b37bde2a94..1fa6e73d952b1715bb231a4eb8593f6714898202 100644 (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.