From 2aaa486f7a2b65725672a04de5f754e014468e70 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 13 Jul 2016 14:09:33 +0200 Subject: [PATCH] Minor code style update --- lib/core/settings.py | 2 +- sqlmap.py | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 8ee0e7be8..22b42a650 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from lib.core.revision import getRevisionNumber # sqlmap version (...) -VERSION = "1.0.7.16" +VERSION = "1.0.7.18" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev") diff --git a/sqlmap.py b/sqlmap.py index d31e015dd..f9d0d70f9 100755 --- a/sqlmap.py +++ b/sqlmap.py @@ -271,14 +271,14 @@ def main(): kb.threadException = True if kb.get("tempDir"): - for prefix in (MKSTEMP_PREFIX.IPC, MKSTEMP_PREFIX.TESTING, MKSTEMP_PREFIX.COOKIE_JAR, MKSTEMP_PREFIX.BIG_ARRAY): - for filepath in glob.glob(os.path.join(kb.tempDir, "%s*" % prefix)): - try: - os.remove(filepath) - except OSError: - pass - if not filter(None, (filepath for filepath in glob.glob(os.path.join(kb.tempDir, '*')) if not any(filepath.endswith(_) for _ in ('.lock', '.exe', '_')))): - shutil.rmtree(kb.tempDir, ignore_errors=True) + for prefix in (MKSTEMP_PREFIX.IPC, MKSTEMP_PREFIX.TESTING, MKSTEMP_PREFIX.COOKIE_JAR, MKSTEMP_PREFIX.BIG_ARRAY): + for filepath in glob.glob(os.path.join(kb.tempDir, "%s*" % prefix)): + try: + os.remove(filepath) + except OSError: + pass + if not filter(None, (filepath for filepath in glob.glob(os.path.join(kb.tempDir, '*')) if not any(filepath.endswith(_) for _ in ('.lock', '.exe', '_')))): + shutil.rmtree(kb.tempDir, ignore_errors=True) if conf.get("hashDB"): try: