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