@staticmethod
def all_transports():
    """Reimplemented safetlib.transport.all_transports so that we can
        enable/disable specific transports.
        """
    try:
        from safetlib.transport import all_transports
    except ImportError:
        transports = []
        try:
            from safetlib.transport_hid import HidTransport
            transports.append(HidTransport)
        except BaseException:
            pass
        try:
            from safetlib.transport_webusb import WebUsbTransport
            transports.append(WebUsbTransport)
        except BaseException:
            pass
    else:
        transports = []
        try:
            from safetlib.transport.hid import HidTransport
            transports.append(HidTransport)
        except BaseException:
            pass
        try:
            from safetlib.transport.webusb import WebUsbTransport
            transports.append(WebUsbTransport)
        except BaseException:
            pass
        return transports
    return transports
