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