diff options
author | Bruce Merry <1963944+bmerry@users.noreply.github.com> | 2024-04-11 14:41:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-11 14:41:55 (GMT) |
commit | 01a51f949475f1590eb5899f3002304060501ab2 (patch) | |
tree | 88528120d948fd0b392f0628a02ad57230f29f4f /Include/pyport.h | |
parent | 898f6de63fd5285006ee0f4993aeb8ed3e8f97f9 (diff) | |
download | cpython-01a51f949475f1590eb5899f3002304060501ab2.zip cpython-01a51f949475f1590eb5899f3002304060501ab2.tar.gz cpython-01a51f949475f1590eb5899f3002304060501ab2.tar.bz2 |
gh-117722: Fix Stream.readuntil with non-bytes buffer objects (#117723)
gh-16429 introduced support for an iterable of separators in
Stream.readuntil. Since bytes-like types are themselves iterable, this
can introduce ambiguities in deciding whether the argument is an
iterator of separators or a singleton separator. In gh-16429, only 'bytes'
was considered a singleton, but this will break code that passes other
buffer object types.
Fix it by only supporting tuples rather than arbitrary iterables.
Closes gh-117722.
Diffstat (limited to 'Include/pyport.h')
0 files changed, 0 insertions, 0 deletions