Xiang Zhang added the comment: Simply add one line to make the function theoretically more robust.
---------- nosy: +xiang.zhang Added file: http://bugs.python.org/file42637/issue24114.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24114> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com