Antoine Pitrou added the comment: > an empty list is not a list of lines Really? >>> "".splitlines() [] ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue15510> _______________________________________