From: Barry Warsaw Date: Mon, 10 May 2004 14:44:04 +0000 (+0000) Subject: _split_ascii(): Small optimization by RH. X-Git-Tag: v2.4a1~412 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f3b033774c9e6b005a18bcf6811f138b61b92e8;p=python _split_ascii(): Small optimization by RH. --- diff --git a/Lib/email/Header.py b/Lib/email/Header.py index 7f2b444d1f..21acaf1179 100644 --- a/Lib/email/Header.py +++ b/Lib/email/Header.py @@ -411,7 +411,7 @@ def _split_ascii(s, firstlen, restlen, continuation_ws, splitchars): # syntax; we just try to break on semi-colons, then commas, then # whitespace. for ch in splitchars: - if line.find(ch) >= 0: + if ch in line: break else: # There's nothing useful to split the line on, not even spaces, so