mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
minor refactoring
This commit is contained in:
parent
b0787f193c
commit
5851badff1
|
@ -12,6 +12,7 @@ import codecs
|
|||
from ConfigParser import MissingSectionHeaderError
|
||||
|
||||
from lib.core.common import checkFile
|
||||
from lib.core.common import unArrayizeValue
|
||||
from lib.core.common import UnicodeRawConfigParser
|
||||
from lib.core.data import conf
|
||||
from lib.core.data import logger
|
||||
|
@ -87,15 +88,9 @@ def configFileParser(configFile):
|
|||
|
||||
for family, optionData in optDict.items():
|
||||
for option, datatype in optionData.items():
|
||||
boolean = False
|
||||
integer = False
|
||||
datatype = unArrayizeValue(datatype)
|
||||
|
||||
if isinstance(datatype, (list, tuple, set)):
|
||||
datatype = datatype[0]
|
||||
|
||||
if datatype == "boolean":
|
||||
boolean = True
|
||||
elif datatype == "integer":
|
||||
integer = True
|
||||
boolean = datatype == "boolean"
|
||||
integer = datatype == "integer"
|
||||
|
||||
configFileProxy(family, option, boolean, integer)
|
||||
|
|
Loading…
Reference in New Issue
Block a user