Martin Panter added the comment: Patch looks good enough.
BTW I was thinking of something like this, which is a bit simpler, but I never tested it: segments[1:-1] = filter(None, segments[1:-1]) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23703> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com