[Python-checkins] cpython: use public 'value'

ethan.furman python-checkins at python.org
Sat Jan 16 15:40:34 EST 2016


https://hg.python.org/cpython/rev/e4c22eadc25c
changeset:   99933:e4c22eadc25c
user:        Ethan Furman <ethan at stoneleaf.us>
date:        Sat Jan 16 12:39:53 2016 -0800
summary:
  use public 'value'

files:
  Doc/library/enum.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
--- a/Doc/library/enum.rst
+++ b/Doc/library/enum.rst
@@ -754,7 +754,7 @@
 your class::
 
     def __bool__(self):
-        return bool(self._value_)
+        return bool(self.value)
 
 The :attr:`__members__` attribute is only available on the class.
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list