def __getattr__(self, name):
        """
        Get an extra value by name.
        """
        warn('Attribute access on EnumItem is deprecated, use EnumItem.get',
             DeprecationWarning, 2)
        if name in self._extra:
            return self.get(name)
        raise AttributeError(
            '{!r} object has no attribute {!r}'.format(
                type(self).__name__, name))
def __getattr__ ( self , name ) : warn ( 'Attribute access on EnumItem is deprecated, use EnumItem.get' , DeprecationWarning , 2 ) if name in self . _extra : return self . get ( name ) raise AttributeError ( '{!r} object has no attribute {!r}' . format ( type ( self ) . __name__ , name ) )
Get an extra value by name.