mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Cosmetics
This commit is contained in:
parent
8776db872c
commit
0817d1b78d
3 changed files with 4 additions and 9 deletions
|
|
@ -23,10 +23,8 @@ def getRevisionNumber():
|
|||
client = pysvn.Client()
|
||||
if client.info(curDir):
|
||||
retVal = client.info(curDir).revision.number
|
||||
|
||||
except ImportError, _:
|
||||
process = execute("svn info %s" % curDir, shell=True, stdout=PIPE, stderr=PIPE)
|
||||
|
||||
svnStdout, svnStderr = process.communicate()
|
||||
|
||||
if svnStdout:
|
||||
|
|
@ -41,8 +39,4 @@ def getRevisionNumber():
|
|||
except ValueError:
|
||||
retVal = None
|
||||
|
||||
#if not retVal:
|
||||
#debugMsg = "sqlmap was not able to retrieve the revision number"
|
||||
#logger.debug(debugMsg)
|
||||
|
||||
return retVal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue