I fixed a major bug in expect_list(). It seems that when buffering was added that the "after" member was still being set to the entire remaining incoming buffer, but now with buffering the remaining buffer often includes bytes after the end of the pattern match, so "after" was grabbing extra bytes. The fix was simple -- "after" is assigned the substring of the incoming buffer -- self.after = incoming[match.start() : match.end()]
I fixed a major bug in expect_list(). It seems that when buffering was
added that the "after" member was still being set to the entire remaining
incoming buffer, but now with buffering the remaining buffer often
includes bytes after the end of the pattern match, so "after" was grabbing
extra bytes. The fix was simple -- "after" is assigned the substring of
the incoming buffer -- self.after = incoming[match.start() : match.end()]


git-svn-id: f580a16d75958e582a48c01f676462de3ca26b7a@270 656d521f-e311-0410-88e0-e7920216d269

elitak/pexpect,elitak/pexpect