File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -657,10 +657,10 @@ def getDirs():
657657 return list (directories )
658658
659659def filePathToString (filePath ):
660- strRepl = filePath .replace ("/" , "_" ).replace ("\\ " , "_" )
661- strRepl = strRepl .replace (" " , "_" ).replace (":" , "_" )
660+ retVal = filePath .replace ("/" , "_" ).replace ("\\ " , "_" )
661+ retVal = retVal .replace (" " , "_" ).replace (":" , "_" )
662662
663- return strRepl
663+ return retVal
664664
665665def singleTimeDebugMessage (message ):
666666 singleTimeLogMessage (message , logging .DEBUG )
@@ -832,7 +832,7 @@ def randomInt(length=4):
832832 Returns random integer value with provided number of digits
833833 """
834834
835- return int ("" .join (random .choice (string .digits if i != 0 else string .digits .replace ('0' , '' )) for i in xrange (0 , length )))
835+ return int ("" .join (random .choice (string .digits if _ != 0 else string .digits .replace ('0' , '' )) for _ in xrange (0 , length )))
836836
837837def randomStr (length = 4 , lowercase = False , alphabet = None ):
838838 """
Original file line number Diff line number Diff line change @@ -686,7 +686,7 @@ def _(key, value):
686686
687687 if not msfEnvPathExists :
688688 errMsg = "unable to locate Metasploit Framework installation. "
689- errMsg += "Get it from http://metasploit.com/framework/download/"
689+ errMsg += "You can get it at ' http://metasploit.com/framework/download/' "
690690 raise SqlmapFilePathException , errMsg
691691
692692def _setWriteFile ():
You can’t perform that action at this time.
0 commit comments