def get(key, default=-1):
        """Backport support for original codes."""
        if isinstance(key, int):
            return OptionClass(key)
        if key not in OptionClass._member_map_:
            extend_enum(OptionClass, key, default)
        return OptionClass[key]
def get ( key , default = - 1 ) : if isinstance ( key , int ) : return OptionClass ( key ) if key not in OptionClass . _member_map_ : extend_enum ( OptionClass , key , default ) return OptionClass [ key ]
Backport support for original codes.