mktemp() shouldn't rely on os.path.exists(), which can return False if the file is a symlink.  Instead, use os.lstat directly, if it exists; fall back on os.stat or the built-in open.  Thanks to Iustin Pop.
mktemp() shouldn't rely on os.path.exists(), which can return False if
the file is a symlink.  Instead, use os.lstat directly, if it exists;
fall back on os.stat or the built-in open.  Thanks to Iustin Pop.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator