diff options
author | bwarsaw <> | 2003-10-07 21:25:22 +0000 |
---|---|---|
committer | bwarsaw <> | 2003-10-07 21:25:22 +0000 |
commit | 7dd7a56769f0faa28ffae2496f7f7c641fa1c545 (patch) | |
tree | 4734bba0317325f5cf2d10336e30cfb994fec941 /Mailman | |
parent | 73248f3b0bdac46e297c45d07c4efad6c6b5d811 (diff) | |
download | mailman2-7dd7a56769f0faa28ffae2496f7f7c641fa1c545.tar.gz mailman2-7dd7a56769f0faa28ffae2496f7f7c641fa1c545.tar.xz mailman2-7dd7a56769f0faa28ffae2496f7f7c641fa1c545.zip |
wrap(): Minor code cleaning.
Diffstat (limited to 'Mailman')
-rw-r--r-- | Mailman/Utils.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py index 13e751a7..bf4effbc 100644 --- a/Mailman/Utils.py +++ b/Mailman/Utils.py @@ -145,12 +145,10 @@ def wrap(text, column=70, honor_leading_ws=True): if eol == 0: # break on whitespace after column eol = column - while eol < len(text) and \ - text[eol] not in whitespace: + while eol < len(text) and text[eol] not in whitespace: eol += 1 bol = eol - while bol < len(text) and \ - text[bol] in whitespace: + while bol < len(text) and text[bol] in whitespace: bol += 1 bol -= 1 line = text[:eol+1] + '\n' |