From 1df83e0cc1cbcc54ee2e9e6ef1552ef3bd96d292 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 16 May 2022 17:38:13 +1000 Subject: [PATCH] Cleanup: clarify --config doc-string, run black auto formatter --- nerd-dictation | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/nerd-dictation b/nerd-dictation index 9ac37bf..ac14797 100755 --- a/nerd-dictation +++ b/nerd-dictation @@ -615,8 +615,7 @@ class from_words_to_digits: ) if i != i_next: word_list[i:i_next] = [ - ("{:,d}".format(int(number)) if (numbers_use_separator and allow_reformat) else number) - + suffix + ("{:,d}".format(int(number)) if (numbers_use_separator and allow_reformat) else number) + suffix ] if (i_number_prev != -1) and (i_number_prev + 1 != i): @@ -746,8 +745,7 @@ def text_from_vosk_pipe( if not os.path.exists(vosk_model_dir): sys.stderr.write( - "Please download the model from https://alphacephei.com/vosk/models and unpack it to %r.\n" - % vosk_model_dir + "Please download the model from https://alphacephei.com/vosk/models and unpack it to %r.\n" % vosk_model_dir ) sys.exit(1) @@ -1166,8 +1164,8 @@ This creates the directory used to store internal data, so other commands such a type=str, metavar="FILE", help=( - "Override the file used for the user configuration\n" - "Use an empty string to disable a custom configuration." + "Override the file used for the user configuration.\n" + "Use an empty string to prevent the users configuration being read." ), required=False, )