@@ -688,7 +688,7 @@ def walk(head, current=None):
688688 debugMsg += "is not inside the %s" % place
689689 logger .debug (debugMsg )
690690
691- elif len (conf .testParameter ) != len (testableParameters . keys () ):
691+ elif len (conf .testParameter ) != len (testableParameters ):
692692 for parameter in conf .testParameter :
693693 if parameter not in testableParameters :
694694 debugMsg = "provided parameter '%s' " % parameter
@@ -1560,7 +1560,7 @@ def expandAsteriskForColumns(expression):
15601560 columnsDict = conf .dbmsHandler .getColumns (onlyColNames = True )
15611561
15621562 if columnsDict and conf .db in columnsDict and conf .tbl in columnsDict [conf .db ]:
1563- columns = columnsDict [conf .db ][conf .tbl ].keys ()
1563+ columns = list ( columnsDict [conf .db ][conf .tbl ].keys () )
15641564 columns .sort ()
15651565 columnsStr = ", " .join (column for column in columns )
15661566 expression = expression .replace ('*' , columnsStr , 1 )
@@ -2064,7 +2064,7 @@ def getSQLSnippet(dbms, sfile, **variables):
20642064 retVal = re .sub (r"#.+" , "" , retVal )
20652065 retVal = re .sub (r";\s+" , "; " , retVal ).strip ("\r \n " )
20662066
2067- for _ in variables . keys () :
2067+ for _ in variables :
20682068 retVal = re .sub (r"%%%s%%" % _ , variables [_ ].replace ('\\ ' , r'\\' ), retVal )
20692069
20702070 for _ in re .findall (r"%RANDSTR\d+%" , retVal , re .I ):
@@ -2223,7 +2223,7 @@ def getFileItems(filename, commentPrefix='#', unicoded=True, lowercase=False, un
22232223 errMsg += "to read the content of file '%s' ('%s')" % (filename , getSafeExString (ex ))
22242224 raise SqlmapSystemException (errMsg )
22252225
2226- return retVal if not unique else retVal .keys ()
2226+ return retVal if not unique else list ( retVal .keys () )
22272227
22282228def goGoodSamaritan (prevValue , originalCharset ):
22292229 """
@@ -3056,7 +3056,7 @@ def saveConfig(conf, filename):
30563056 config = UnicodeRawConfigParser ()
30573057 userOpts = {}
30583058
3059- for family in optDict . keys () :
3059+ for family in optDict :
30603060 userOpts [family ] = []
30613061
30623062 for option , value in conf .items ():
@@ -3795,7 +3795,7 @@ def __init__(self):
37953795 logger .debug (debugMsg )
37963796 else :
37973797 found = sorted (options .keys (), key = lambda x : len (x ))[0 ]
3798- warnMsg = "detected ambiguity (mnemonic '%s' can be resolved to any of: %s). " % (name , ", " .join ("'%s'" % key for key in options . keys () ))
3798+ warnMsg = "detected ambiguity (mnemonic '%s' can be resolved to any of: %s). " % (name , ", " .join ("'%s'" % key for key in options ))
37993799 warnMsg += "Resolved to shortest of those ('%s')" % found
38003800 logger .warn (warnMsg )
38013801
0 commit comments