Minor consistency patch

This commit is contained in:
Miroslav Stampar 2015-11-28 22:42:25 +01:00
parent f9da29284c
commit 5f2c31f8ec

View File

@ -9,10 +9,9 @@ import os
import posixpath
import re
import StringIO
import tempfile
import urlparse
from tempfile import mkstemp
from extra.cloak.cloak import decloak
from lib.core.agent import agent
from lib.core.common import arrayizeValue
@ -257,7 +256,7 @@ class Web:
stagerName = "tmpu%s.%s" % (randomStr(lowercase=True), self.webApi)
self.webStagerFilePath = posixpath.join(ntToPosixSlashes(directory), stagerName)
handle, filename = mkstemp()
handle, filename = tempfile.mkstemp()
os.fdopen(handle).close() # close low level handle (causing problems later)
with open(filename, "w+") as f: