(default=None)
return decorator
Create a decorator that the function will be called when ABI is Linux.
    Otherwise, return `default`.
Create a decorator that the function will be called when ABI is Linux.
    Otherwise, return `default`.
Create a decorator that the function will be called when ABI is Linux . Otherwise return default .
def LinuxOnly(default=None):
    """Create a decorator that the function will be called when ABI is Linux.
    Otherwise, return `default`.
    """
    def decorator(func):
        @functools.wraps(func)
        def caller(*args, **kwargs):
            if linux:
                return func(*args, **kwargs)
            else:
                return default
        return caller

    return decorator
def LinuxOnly ( default = None ) : def decorator ( func ) : @ functools . wraps ( func ) def caller ( * args , * * kwargs ) : if linux : return func ( * args , * * kwargs ) else : return default return caller return decorator