summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/Lib/enum.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tools/python3/Lib/enum.py')
-rw-r--r--contrib/tools/python3/Lib/enum.py25
1 files changed, 13 insertions, 12 deletions
diff --git a/contrib/tools/python3/Lib/enum.py b/contrib/tools/python3/Lib/enum.py
index 5e7b00654dd..dbf7bd343ab 100644
--- a/contrib/tools/python3/Lib/enum.py
+++ b/contrib/tools/python3/Lib/enum.py
@@ -697,9 +697,9 @@ class EnumType(type):
"""
Either returns an existing member, or creates a new enum class.
- This method is used both when an enum class is given a value to match
- to an enumeration member (i.e. Color(3)) and for the functional API
- (i.e. Color = Enum('Color', names='RED GREEN BLUE')).
+ This method is used both when an enum class is given a value to
+ match to an enumeration member (i.e. Color(3)) and for the
+ functional API (i.e. Color = Enum('Color', names='RED GREEN BLUE')).
The value lookup branch is chosen if the enum is final.
@@ -707,16 +707,17 @@ class EnumType(type):
`value` will be the name of the new class.
- `names` should be either a string of white-space/comma delimited names
- (values will start at `start`), or an iterator/mapping of name, value pairs.
+ `names` should be either a string of white-space/comma delimited
+ names (values will start at `start`), or an iterator/mapping of
+ name, value pairs.
`module` should be set to the module this class is being created in;
- if it is not set, an attempt to find that module will be made, but if
- it fails the class will not be picklable.
+ if it is not set, an attempt to find that module will be made, but
+ if it fails the class will not be picklable.
- `qualname` should be set to the actual location this class can be found
- at in its module; by default it is set to the global scope. If this is
- not correct, unpickling will fail in some circumstances.
+ `qualname` should be set to the actual location this class can be
+ found at in its module; by default it is set to the global scope.
+ If this is not correct, unpickling will fail in some circumstances.
`type`, if set, will be mixed in as the first base class.
"""
@@ -810,8 +811,8 @@ class EnumType(type):
"""
Returns a mapping of member name->value.
- This mapping lists all enum members, including aliases. Note that this
- is a read-only view of the internal mapping.
+ This mapping lists all enum members, including aliases. Note that
+ this is a read-only view of the internal mapping.
"""
return MappingProxyType(cls._member_map_)