mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
minor fix
This commit is contained in:
parent
1bdc07c279
commit
0205d96d7b
|
@ -735,7 +735,7 @@ def dataToStdout(data, forceOutput=False):
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
if kb.get("multiThreadMode"):
|
if kb.get("multiThreadMode"):
|
||||||
logging._releaseLock()
|
logging._releaseLock()
|
||||||
setFormatterPrependFlag(len(data) == 1 and data != '\n' or len(data) > 2 and data[0] == '\r' and data[-1] != '\n')
|
setFormatterPrependFlag(len(data) == 1 and data not in ('\n', '\r') or len(data) > 2 and data[0] == '\r' and data[-1] != '\n')
|
||||||
|
|
||||||
def dataToSessionFile(data):
|
def dataToSessionFile(data):
|
||||||
if not conf.sessionFile or kb.suppressSession:
|
if not conf.sessionFile or kb.suppressSession:
|
||||||
|
@ -1627,6 +1627,7 @@ def clearConsoleLine(forceOutput=False):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
dataToStdout("\r%s\r" % (" " * (getConsoleWidth() - 1)), forceOutput)
|
dataToStdout("\r%s\r" % (" " * (getConsoleWidth() - 1)), forceOutput)
|
||||||
|
setFormatterPrependFlag(False)
|
||||||
|
|
||||||
def parseXmlFile(xmlFile, handler):
|
def parseXmlFile(xmlFile, handler):
|
||||||
"""
|
"""
|
||||||
|
@ -2447,8 +2448,7 @@ def initTechnique(technique=None):
|
||||||
|
|
||||||
def arrayizeValue(value):
|
def arrayizeValue(value):
|
||||||
"""
|
"""
|
||||||
Makes a list out of value if it is not already a list, tuple or set
|
Makes a list out of value if it is not already a list or tuple itself
|
||||||
itself
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if not isinstance(value, (list, tuple)):
|
if not isinstance(value, (list, tuple)):
|
||||||
|
@ -2458,8 +2458,7 @@ def arrayizeValue(value):
|
||||||
|
|
||||||
def unArrayizeValue(value):
|
def unArrayizeValue(value):
|
||||||
"""
|
"""
|
||||||
Makes a value out of iterable if it is a list, tuple or set
|
Makes a value out of iterable if it is a list or tuple itself
|
||||||
itself
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if isinstance(value, (list, tuple)):
|
if isinstance(value, (list, tuple)):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user