Issue #11818: Fix tempfile examples for Python 3.
2 files changed