Submitter | phabricator |
---|---|
Date | Oct. 17, 2017, 2:16 p.m. |
Message ID | <455fc889512dcbbfe9c5b396b189bfa1@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/25098/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/hgext/releasenotes.py b/hgext/releasenotes.py --- a/hgext/releasenotes.py +++ b/hgext/releasenotes.py @@ -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)