Exemple #1
0
 def name_compare(self, s1, s2):
     if self.use_soundex:
         try:
             return compare(s1, s2)
         except UnicodeEncodeError:
             return s1 == s2
     else:
         return s1 == s2
Exemple #2
0
 def name_compare(self, s1, s2):
     if self.use_soundex:
         try:
             return compare(s1,s2)
         except UnicodeEncodeError:
             return s1 == s2
     else:
         return s1 == s2