diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-07-08 17:35:07 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-07-08 17:35:07 -0700 |
commit | 0c8c32cd03c35ae6299c192021c20d956ca44dc8 (patch) | |
tree | 17829c64af6d1b4aa7f172a00806c427bc92c12a /share/tools/create_manpage_completions.py | |
parent | a38d6e74f533a765ab0ba161d69c1770cdcb23c0 (diff) |
Not sure why the escape character was being printed in the manpage completions script
Diffstat (limited to 'share/tools/create_manpage_completions.py')
-rwxr-xr-x | share/tools/create_manpage_completions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/tools/create_manpage_completions.py b/share/tools/create_manpage_completions.py index f3f4a78b..4b0c2657 100755 --- a/share/tools/create_manpage_completions.py +++ b/share/tools/create_manpage_completions.py @@ -809,7 +809,7 @@ def parse_and_output_man_pages(paths, output_directory, yield_to_dirs, show_prog # Pad on the right with spaces so we overwrite whatever we wrote last time padded_progress_str = progress_str.ljust(last_progress_string_length) last_progress_string_length = len(progress_str) - sys.stdout.write("\r{0} {1}\r".format(padded_progress_str, chr(27))) + sys.stdout.write("\r{0}\r".format(padded_progress_str)) sys.stdout.flush() # Maybe we want to skip this item @@ -887,7 +887,7 @@ if __name__ == "__main__": try: opts, file_paths = getopt.gnu_getopt(sys.argv[1:], 'v:sd:hmpy:z', ['verbose=', 'stdout', 'directory=', 'help', 'manpath', 'progress', 'yield-to=']) except getopt.GetoptError as err: - print(err.strerror) # will print something like "option -a not recognized" + print(err.msg) # will print something like "option -a not recognized" usage(script_name) sys.exit(2) |