aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-04-14 01:58:34 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-04-14 02:03:53 -0700
commit0e246761440418bfdb0115151495979f9015aaa3 (patch)
tree20882f23e8010a32bf3c534a62b4e58916b24461
parentb0132821acb8df3c5d55b3be5dbdd1ec0c5ac7d4 (diff)
Fix to make create_manpage_completions work with Python 3
-rwxr-xr-xshare/tools/create_manpage_completions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/tools/create_manpage_completions.py b/share/tools/create_manpage_completions.py
index 838c8a94..4548dd1d 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