diff options
author | Greg Ward <gward@python.net> | 2000-08-30 17:16:27 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-08-30 17:16:27 (GMT) |
commit | 46a69b9c7f4c1c0506a900d67cd83215ec416885 (patch) | |
tree | c22e35618fe22bedd9ae6f372c9758a646c2ec24 /Lib | |
parent | 9c0a99ec1a08793e4cb3bb36efbb1f76823b2e0f (diff) | |
download | cpython-46a69b9c7f4c1c0506a900d67cd83215ec416885.zip cpython-46a69b9c7f4c1c0506a900d67cd83215ec416885.tar.gz cpython-46a69b9c7f4c1c0506a900d67cd83215ec416885.tar.bz2 |
Added docstring for 'wrap()' function.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/fancy_getopt.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/distutils/fancy_getopt.py b/Lib/distutils/fancy_getopt.py index a62bc0d..eaf6073 100644 --- a/Lib/distutils/fancy_getopt.py +++ b/Lib/distutils/fancy_getopt.py @@ -412,6 +412,11 @@ def fancy_getopt (options, negative_opt, object, args): WS_TRANS = string.maketrans (string.whitespace, ' ' * len (string.whitespace)) def wrap_text (text, width): + """wrap_text(text : string, width : int) -> [string] + + Split 'text' into multiple lines of no more than 'width' characters + each, and return the list of strings that results. + """ if text is None: return [] |