Skip to content
Myr

Docstring additions and typo fixes

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ryan Siemens · committed by rsiemens · parent 7d1f4ab · Browse files · 3 files+8 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+8 added−7 removed

  • other:+8 added−7 removed

3 files+8 added−7 removed

modified:click/_unicodefun.py+1 added-1 removed
92 unmodified lines
93 )94 else:95 extra += (96 'This system lists a couple of UTF-8 supporting locales that\n'97 'you can pick from. The following suitable locales where\n'97 'you can pick from. The following suitable locales were\n'98 'discovered: %s'99 ) % ', '.join(sorted(good_locales))100101 bad_locale = None
18 unmodified lines
modified:click/core.py+5 added-5 removed
652 unmodified lines
653 the program name is constructed by taking the file654 name from ``sys.argv[0]``.655 :param complete_var: the environment variable that controls the656 bash completion support. The default is657 ``"_<prog_name>_COMPLETE"`` with prog name in657 ``"_<prog_name>_COMPLETE"`` with prog_name in658 uppercase.659 :param standalone_mode: the default behavior is to invoke the script660 in standalone mode. Click will then661 handle exceptions and convert them into
6 unmodified lines
668 :param extra: extra keyword arguments are forwarded to the context669 constructor. See :class:`Context` for more information.670 """671 # If we are in Python 3, we will verify that the environment is672 # sane at this point of reject further execution to avoid a672 # sane at this point or reject further execution to avoid a673 # broken script.674 if not PY2:675 _verify_python3_env()676 else:
746 unmodified lines
1423 All other parameters are passed onwards to the parameter constructor.14241425 :param show_default: controls if the default value should be shown on the1426 help page. Normally, defaults are not shown.1427 :param prompt: if set to `True` or a non empty string then the user will1428 be prompted for input if not set. If set to `True` the1429 prompt will be the option name capitalized.1427 :param prompt: if set to `True` or a non empty string then the user will be1428 prompted for input. If set to `True` the prompt will be the1429 option name capitalized.1430 :param confirmation_prompt: if set then the value will need to be confirmed1431 if it was prompted for.1432 :param hide_input: if this is `True` then the input on the prompt will be1433 hidden from the user. This is useful for password
314 unmodified lines
modified:click/utils.py+2 added-1 removed
41 unmodified lines
42 return text_type(value)434445def make_default_short_help(help, max_length=45):46 """Return a condensed version of help string."""47 words = help.split()48 total_length = 049 result = []50 done = False
120 unmodified lines
171 matter how badly configured the system is.172173 Primarily it means that you can print binary data as well as Unicode174 data on both 2.x and 3.x to the given file in the most appropriate way174 possible. This is a very carefree function as in that it will try its175 possible. This is a very carefree function in that it will try its176 best to not fail. As of Click 6.0 this includes support for unicode177 output on the Windows console.178179 In addition to that, if `colorama`_ is installed, the echo function will
237 unmodified lines