##// END OF EJS Templates
releasenotes: make the import of fuzzywuzzy optional...
Pulkit Goyal -
r34811:44bd2916 default
parent child Browse files
Show More
@@ -218,7 +218,12 b' def similaritycheck(incoming_str, existi'
218 218 """
219 219 Returns false when note fragment can be merged to existing notes.
220 220 """
221 import fuzzywuzzy.fuzz as fuzz
221 try:
222 import fuzzywuzzy.fuzz as fuzz
223 fuzz.token_set_ratio
224 except ImportError:
225 return True
226
222 227 merge = True
223 228 for bullet in existingnotes:
224 229 score = fuzz.token_set_ratio(incoming_str, bullet)
General Comments 0
You need to be logged in to leave comments. Login now