Trim trailing whitespace

This commit is contained in:
Eli Bendersky 2013-04-04 06:52:41 -07:00
parent 44b674e3a4
commit cbd95cbb7b
1 changed files with 2 additions and 2 deletions

View File

@ -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