Don't let `_join_pairs` raise StopIteration
Don't let `_join_pairs` raise StopIteration

Python 3.5+ doesn't like that anymore.

I'm actually a bit surprised that this new code works; is it guaranteed to work
on all Python implementations?  I guess I'll find out.

jwodder/linesep