diff options
author | Barry Warsaw <barry@python.org> | 2004-05-10 14:44:04 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2004-05-10 14:44:04 (GMT) |
commit | 6f3b033774c9e6b005a18bcf6811f138b61b92e8 (patch) | |
tree | df3c2e8f5164cd8c6922e533cb1d9f9b0537dc04 /Lib/email | |
parent | 300fa1d3b27e43c58eb62abd5d85295eba2d81e7 (diff) | |
download | cpython-6f3b033774c9e6b005a18bcf6811f138b61b92e8.zip cpython-6f3b033774c9e6b005a18bcf6811f138b61b92e8.tar.gz cpython-6f3b033774c9e6b005a18bcf6811f138b61b92e8.tar.bz2 |
_split_ascii(): Small optimization by RH.
Diffstat (limited to 'Lib/email')
-rw-r--r-- | Lib/email/Header.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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 |