Browse Source

[IMP] don't make a temporary copy of dict keys

pull/1040/head
Holger Brunn 10 years ago
committed by Enric Tobella
parent
commit
f850526a8c
No known key found for this signature in database GPG Key ID: 1A2546A1B7BA2451
  1. 4
      auditlog/models/rule.py

4
auditlog/models/rule.py

@ -39,8 +39,8 @@ class DictDiffer(object):
"""
def __init__(self, current_dict, past_dict):
self.current_dict, self.past_dict = current_dict, past_dict
self.set_current = set(current_dict.keys())
self.set_past = set(past_dict.keys())
self.set_current = set(current_dict)
self.set_past = set(past_dict)
self.intersect = self.set_current.intersection(self.set_past)
def added(self):

Loading…
Cancel
Save