소스 검색

[desktop] Don't compare regexes by address

Erick Tryzelaar 10 년 전
부모
커밋
4a6448f
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      desktop/core/src/desktop/redaction/engine.py

+ 2 - 1
desktop/core/src/desktop/redaction/engine.py

@@ -119,7 +119,8 @@ class RedactionRule(object):
     return \
     return \
         isinstance(other, self.__class__) and \
         isinstance(other, self.__class__) and \
         self.trigger == other.trigger and \
         self.trigger == other.trigger and \
-        self.regex == other.regex and \
+        self.regex.pattern == other.regex.pattern and \
+        self.regex.flags == other.regex.flags and \
         self.replace == other.replace
         self.replace == other.replace
 
 
   def __ne__(self, other):
   def __ne__(self, other):