From 024aff856379a018dd5b9f6e23801c51958bad93 Mon Sep 17 00:00:00 2001 From: lagos Date: Fri, 26 Oct 2012 20:24:21 -0700 Subject: [PATCH] Changes the way that command sets are duplicated in a merge to be sure class attributes are propagated. --- src/commands/cmdset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/cmdset.py b/src/commands/cmdset.py index 9e52f41460..c80f56d3d6 100644 --- a/src/commands/cmdset.py +++ b/src/commands/cmdset.py @@ -202,7 +202,7 @@ class CmdSet(object): Returns a new cmdset with the same settings as this one (no actual commands are copied over) """ - cmdset = CmdSet() + cmdset = self.__class__() cmdset.__dict__.update(dict((key, val) for key, val in self.__dict__.items() if key in self.to_duplicate)) cmdset.key_mergetypes = self.key_mergetypes.copy() #copy.deepcopy(self.key_mergetypes) return cmdset