From: Greg Ward Date: Wed, 30 Aug 2000 17:16:27 +0000 (+0000) Subject: Added docstring for 'wrap()' function. X-Git-Tag: v2.0b1~165 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46a69b9c7f4c1c0506a900d67cd83215ec416885;p=python Added docstring for 'wrap()' function. --- diff --git a/Lib/distutils/fancy_getopt.py b/Lib/distutils/fancy_getopt.py index a62bc0df75..eaf6073760 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 []