Commit 6f3b0337 authored by Barry Warsaw's avatar Barry Warsaw

_split_ascii(): Small optimization by RH.

parent 300fa1d3
...@@ -411,7 +411,7 @@ def _split_ascii(s, firstlen, restlen, continuation_ws, splitchars): ...@@ -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 # syntax; we just try to break on semi-colons, then commas, then
# whitespace. # whitespace.
for ch in splitchars: for ch in splitchars:
if line.find(ch) >= 0: if ch in line:
break break
else: else:
# There's nothing useful to split the line on, not even spaces, so # There's nothing useful to split the line on, not even spaces, so
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment