Browse Source
[IMP] don't make a temporary copy of dict keys
pull/1040/head
Holger Brunn
10 years ago
committed by
Enric Tobella
No known key found for this signature in database
GPG Key ID: 1A2546A1B7BA2451
1 changed files with
2 additions and
2 deletions
-
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): |
|
|
|