mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-01-30 10:09:03 +00:00
Trivial optimization of BigArray
This commit is contained in:
@@ -187,8 +187,7 @@ class BigArray(list):
|
||||
try:
|
||||
handle, filename = tempfile.mkstemp(prefix=MKSTEMP_PREFIX.BIG_ARRAY)
|
||||
self.filenames.add(filename)
|
||||
os.close(handle)
|
||||
with open(filename, "w+b") as f:
|
||||
with os.fdopen(handle, "w+b") as f:
|
||||
f.write(zlib.compress(pickle.dumps(chunk, pickle.HIGHEST_PROTOCOL), BIGARRAY_COMPRESS_LEVEL))
|
||||
return filename
|
||||
except (OSError, IOError) as ex:
|
||||
|
||||
Reference in New Issue
Block a user