changeset 34810 | 44bd29168d14 |
parent 34780 | 070ba789f4d0 |
child 34811 | a542ad320adb |
--- a/hgext/releasenotes.py Mon Oct 16 22:51:58 2017 -0400 +++ b/hgext/releasenotes.py Sun Oct 15 20:29:16 2017 +0530 @@ -218,7 +218,12 @@ """ Returns false when note fragment can be merged to existing notes. """ - import fuzzywuzzy.fuzz as fuzz + try: + import fuzzywuzzy.fuzz as fuzz + fuzz.token_set_ratio + except ImportError: + return True + merge = True for bullet in existingnotes: score = fuzz.token_set_ratio(incoming_str, bullet)