]> granicus.if.org Git - python/commitdiff
Added docstring for 'wrap()' function.
authorGreg Ward <gward@python.net>
Wed, 30 Aug 2000 17:16:27 +0000 (17:16 +0000)
committerGreg Ward <gward@python.net>
Wed, 30 Aug 2000 17:16:27 +0000 (17:16 +0000)
Lib/distutils/fancy_getopt.py

index a62bc0df752af65cb222b8fad9aadb4eec3180fe..eaf60737605b841e1da6d0cc811d924a593d3b26 100644 (file)
@@ -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 []