@record_history
def connect(self, src, dst, force=True):
    if isinstance(src, Plug):
        src = src._mplug
    if isinstance(dst, Plug):
        dst = dst._mplug
    if force:
        for plug in dst.connectedTo(True, False):
            self.disconnect(plug, dst)
    self._modifier.connect(src, dst)
@record_history
def connect(self, src, dst, force=True):
    if isinstance(src, Plug):
        src = src._mplug
    if isinstance(dst, Plug):
        dst = dst._mplug
    if force:
        for plug in dst.connectedTo(True, False):
            self.disconnect(plug, dst)
    self._modifier.connect(src, dst)