Fix bug where we changes in outlier in metadata dict propogated to other events

This commit is contained in:
Erik Johnston 2015-01-30 10:30:54 +00:00
parent 78015948a7
commit c1c7b39827
3 changed files with 8 additions and 4 deletions

View file

@ -23,14 +23,15 @@ import copy
class EventBuilder(EventBase):
def __init__(self, key_values={}):
def __init__(self, key_values={}, internal_metadata_dict={}):
signatures = copy.deepcopy(key_values.pop("signatures", {}))
unsigned = copy.deepcopy(key_values.pop("unsigned", {}))
super(EventBuilder, self).__init__(
key_values,
signatures=signatures,
unsigned=unsigned
unsigned=unsigned,
internal_metadata_dict=internal_metadata_dict,
)
def build(self):