Florent Xicluna <florent.xicl...@gmail.com> added the comment: actually, there's a simpler implementation, using s.rstrip(always_safe + safe).
It is as fast as the previous one. ---------- Added file: http://bugs.python.org/file17298/issue1285086_using_rstrip.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1285086> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com