commit | 6f3b033774c9e6b005a18bcf6811f138b61b92e8 | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Mon May 10 14:44:04 2004 +0000 |
committer | Barry Warsaw <barry@python.org> | Mon May 10 14:44:04 2004 +0000 |
tree | df3c2e8f5164cd8c6922e533cb1d9f9b0537dc04 | |
parent | 300fa1d3b27e43c58eb62abd5d85295eba2d81e7 [diff] [blame] |
_split_ascii(): Small optimization by RH.
diff --git a/Lib/email/Header.py b/Lib/email/Header.py index 7f2b444..21acaf1 100644 --- a/Lib/email/Header.py +++ b/Lib/email/Header.py
@@ -411,7 +411,7 @@ # 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