diff options
Diffstat (limited to 'modules/language/python/module')
-rw-r--r-- | modules/language/python/module/enum.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/language/python/module/enum.py b/modules/language/python/module/enum.py index 7e7e46c..eefc1b5 100644 --- a/modules/language/python/module/enum.py +++ b/modules/language/python/module/enum.py @@ -150,7 +150,7 @@ class EnumMeta(type): if invalid_names: raise ValueError('Invalid enum member name: {0}'.format( ','.join(invalid_names))) - + # create a default docstring if one has not been provided if '__doc__' not in classdict: classdict['__doc__'] = 'An enumeration.' @@ -164,7 +164,7 @@ class EnumMeta(type): # save attributes from super classes so we know if we can take # the shortcut of storing members in the class dict - + base_attributes = {a for b in enum_class.mro() for a in b.__dict__} # Reverse value->name map for hashable values. |