From 0e246761440418bfdb0115151495979f9015aaa3 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 14 Apr 2013 01:58:34 -0700 Subject: [PATCH] Fix to make create_manpage_completions work with Python 3 Fixes https://github.com/fish-shell/fish-shell/issues/658 ? --- share/tools/create_manpage_completions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/tools/create_manpage_completions.py b/share/tools/create_manpage_completions.py index 838c8a94d..4548dd1d2 100755 --- a/share/tools/create_manpage_completions.py +++ b/share/tools/create_manpage_completions.py @@ -135,7 +135,8 @@ def built_command(options, description): if IS_PY3: truncation_suffix = '… [See Man Page]' else: - truncation_suffix = u'… [See Man Page]' + ELLIPSIS_CODE_POINT = 0x2026 + truncation_suffix = unichr(ELLIPSIS_CODE_POINT) + unicode(' [See Man Page]') # Try to include as many whole sentences as will fit # Clean up some probably bogus escapes in the process