def _unlockFromSwitch(self):
        if self.innerProtocol is not None:
            raise ProtocolSwitched("Protocol already switched.  Cannot unlock.")
        self._locked = False
Usage:
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/protocols/amp.py/BinaryBoxProtocol._unlockFromSwitch--crossover with--dataset/ETHPy150Open evennia/evennia/evennia/locks/lockfuncs.py/objlocattr