Fix to make create_manpage_completions work with Python 3

Fixes https://github.com/fish-shell/fish-shell/issues/658 ?
This commit is contained in:
ridiculousfish 2013-04-14 01:58:34 -07:00
parent b0132821ac
commit 0e24676144

View File

@ -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