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