changeset 12698 | 7aef77e74cf3 |
parent 12689 | c52c629ce19e |
child 12877 | 551aa6e27929 |
--- a/mercurial/util.py Sat Oct 09 16:55:33 2010 -0500 +++ b/mercurial/util.py Sun Oct 10 18:02:52 2010 -0500 @@ -1313,9 +1313,7 @@ #### naming convention of above implementation follows 'textwrap' module -def wrap(line, width=None, initindent='', hangindent=''): - if width is None: - width = termwidth() - 2 +def wrap(line, width, initindent='', hangindent=''): maxindent = max(len(hangindent), len(initindent)) if width <= maxindent: # adjust for weird terminal size