Artur R. Czechowski added the comment: Proper patch with tests available in remote hg repo attached to this comment. ---------- hgrepos: +217 _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue20714> _______________________________________