Trim trailing whitespace
This commit is contained in:
parent
44b674e3a4
commit
cbd95cbb7b
|
@ -317,7 +317,7 @@ enumerations can have arbitrary values. The following example uses strings::
|
||||||
>>> class SpecialId(Enum):
|
>>> class SpecialId(Enum):
|
||||||
... selector = '$IM($N)'
|
... selector = '$IM($N)'
|
||||||
... adaptor = '~$IM'
|
... adaptor = '~$IM'
|
||||||
...
|
...
|
||||||
>>> SpecialId.selector
|
>>> SpecialId.selector
|
||||||
<EnumValue: SpecialId.selector [value=$IM($N)]>
|
<EnumValue: SpecialId.selector [value=$IM($N)]>
|
||||||
>>> SpecialId.selector.value
|
>>> SpecialId.selector.value
|
||||||
|
@ -415,7 +415,7 @@ The ``Enum`` class is callable, providing the following convenience API::
|
||||||
>>> Animals = Enum('Animals', 'ant bee cat dog')
|
>>> Animals = Enum('Animals', 'ant bee cat dog')
|
||||||
>>> Animals
|
>>> Animals
|
||||||
<Animals {ant: 1, bee: 2, cat: 3, dog: 4}>
|
<Animals {ant: 1, bee: 2, cat: 3, dog: 4}>
|
||||||
>>>
|
>>>
|
||||||
>>> Animals.ant
|
>>> Animals.ant
|
||||||
<EnumValue: Animals.ant [value=1]>
|
<EnumValue: Animals.ant [value=1]>
|
||||||
>>> Animals.ant.value
|
>>> Animals.ant.value
|
||||||
|
|
Loading…
Reference in New Issue