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

Skip to content

Commit 2aaa486

Browse files
committed
Minor code style update
1 parent 47ba7d4 commit 2aaa486

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.7.16"
22+
VERSION = "1.0.7.18"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

sqlmap.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -271,14 +271,14 @@ def main():
271271
kb.threadException = True
272272

273273
if kb.get("tempDir"):
274-
for prefix in (MKSTEMP_PREFIX.IPC, MKSTEMP_PREFIX.TESTING, MKSTEMP_PREFIX.COOKIE_JAR, MKSTEMP_PREFIX.BIG_ARRAY):
275-
for filepath in glob.glob(os.path.join(kb.tempDir, "%s*" % prefix)):
276-
try:
277-
os.remove(filepath)
278-
except OSError:
279-
pass
280-
if not filter(None, (filepath for filepath in glob.glob(os.path.join(kb.tempDir, '*')) if not any(filepath.endswith(_) for _ in ('.lock', '.exe', '_')))):
281-
shutil.rmtree(kb.tempDir, ignore_errors=True)
274+
for prefix in (MKSTEMP_PREFIX.IPC, MKSTEMP_PREFIX.TESTING, MKSTEMP_PREFIX.COOKIE_JAR, MKSTEMP_PREFIX.BIG_ARRAY):
275+
for filepath in glob.glob(os.path.join(kb.tempDir, "%s*" % prefix)):
276+
try:
277+
os.remove(filepath)
278+
except OSError:
279+
pass
280+
if not filter(None, (filepath for filepath in glob.glob(os.path.join(kb.tempDir, '*')) if not any(filepath.endswith(_) for _ in ('.lock', '.exe', '_')))):
281+
shutil.rmtree(kb.tempDir, ignore_errors=True)
282282

283283
if conf.get("hashDB"):
284284
try:

0 commit comments

Comments
 (0)