Serhiy Storchaka added the comment: Here is a patch that fixes the issue. ---------- stage: needs patch -> patch review _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue25406> _______________________________________