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