Bug 1095977

tempfile is imported but doesn't seem to be used