Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 09f1cdd

Browse files
committed
Minor style update
1 parent 0795760 commit 09f1cdd

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/core/common.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -657,10 +657,10 @@ def getDirs():
657657
return list(directories)
658658

659659
def 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

665665
def 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

837837
def randomStr(length=4, lowercase=False, alphabet=None):
838838
"""

lib/core/option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

692692
def _setWriteFile():

0 commit comments

Comments
 (0)