Robert Collins added the comment: mktemp is clearly insecure. I'd just move the tmpdir up above the Deprecation section start ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue23725> _______________________________________