mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Minor refactoring
This commit is contained in:
parent
10be8a12bd
commit
15ef0f872f
5 changed files with 10 additions and 7 deletions
|
|
@ -56,6 +56,7 @@ from lib.core.common import getSafeExString
|
|||
from lib.core.common import hashDBRetrieve
|
||||
from lib.core.common import hashDBWrite
|
||||
from lib.core.common import normalizeUnicode
|
||||
from lib.core.common import openFile
|
||||
from lib.core.common import paths
|
||||
from lib.core.common import readInput
|
||||
from lib.core.common import singleTimeLogMessage
|
||||
|
|
@ -597,7 +598,7 @@ def storeHashesToFile(attack_dict):
|
|||
infoMsg = "writing hashes to a temporary file '%s' " % filename
|
||||
logger.info(infoMsg)
|
||||
|
||||
with open(filename, "w+") as f:
|
||||
with openFile(filename, "w+") as f:
|
||||
for item in items:
|
||||
f.write(item)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue