mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +03:00
Minor style update
This commit is contained in:
parent
18b1d1efd6
commit
cba77410a9
|
@ -18,8 +18,8 @@ def getRevisionNumber():
|
||||||
|
|
||||||
retVal = None
|
retVal = None
|
||||||
filePath = None
|
filePath = None
|
||||||
|
|
||||||
_ = os.path.dirname(__file__)
|
_ = os.path.dirname(__file__)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
filePath = os.path.join(_, ".git", "HEAD")
|
filePath = os.path.join(_, ".git", "HEAD")
|
||||||
if os.path.exists(filePath):
|
if os.path.exists(filePath):
|
||||||
|
@ -30,6 +30,7 @@ def getRevisionNumber():
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
_ = os.path.dirname(_)
|
_ = os.path.dirname(_)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
if filePath and os.path.isfile(filePath):
|
if filePath and os.path.isfile(filePath):
|
||||||
with open(filePath, "r") as f:
|
with open(filePath, "r") as f:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user