def _duplicate(self):
        cmdset = CmdSet()
        for key, val in ((key, getattr(self, key)) for key in self.to_duplicate):
            if val != getattr(cmdset, key):
                # only copy if different from default; avoid turning
                # class-vars into instance vars
                setattr(cmdset, key, val)
        cmdset.key_mergetypes = self.key_mergetypes.copy()
        return cmdset
Returns a new cmdset with the same settings as this one (no
dataset/ETHPy150Open evennia/evennia/evennia/commands/cmdset.py/CmdSet._duplicate