From 0d5d84edc7fb7dea4b6e3acfdbaa532b5f69d04d Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 20 Dec 2012 21:03:41 +0100 Subject: [PATCH] Minor cleanup --- _sqlmap.py | 2 -- lib/controller/action.py | 1 - lib/techniques/error/use.py | 1 - lib/utils/hash.py | 2 +- 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/_sqlmap.py b/_sqlmap.py index 8ab4272c4..d8b81a1a1 100755 --- a/_sqlmap.py +++ b/_sqlmap.py @@ -6,7 +6,6 @@ See the file 'doc/COPYING' for copying permission """ import bdb -import logging import os import sys import time @@ -29,7 +28,6 @@ from lib.core.data import logger from lib.core.data import paths from lib.core.common import unhandledExceptionMessage from lib.core.exception import exceptionsTuple -from lib.core.exception import SqlmapMissingDependence from lib.core.exception import SqlmapSilentQuitException from lib.core.exception import SqlmapUserQuitException from lib.core.option import init diff --git a/lib/controller/action.py b/lib/controller/action.py index a3cecf176..09834b48a 100644 --- a/lib/controller/action.py +++ b/lib/controller/action.py @@ -8,7 +8,6 @@ See the file 'doc/COPYING' for copying permission from lib.controller.handler import setHandler from lib.core.common import Backend from lib.core.common import Format -from lib.core.common import dataToStdout from lib.core.data import conf from lib.core.data import kb from lib.core.data import logger diff --git a/lib/techniques/error/use.py b/lib/techniques/error/use.py index 337a700b9..0b781e395 100644 --- a/lib/techniques/error/use.py +++ b/lib/techniques/error/use.py @@ -236,7 +236,6 @@ def errorUse(expression, dump=False): start = time.time() startLimit = 0 stopLimit = None - output = None value = None _, _, _, _, _, expressionFieldsList, expressionFields, _ = agent.getFields(expression) diff --git a/lib/utils/hash.py b/lib/utils/hash.py index e19c91a34..686ff43a5 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -500,7 +500,7 @@ def _bruteProcessVariantA(attack_info, hash_regex, suffix, retVal, proc_id, proc except (UnicodeEncodeError, UnicodeDecodeError): pass # ignore possible encoding problems caused by some words in custom dictionaries - except Exception, e: + except Exception: warnMsg = "there was a problem while hashing entry: %s. " % repr(word) warnMsg += "Please report by e-mail to %s" % ML logger.critical(warnMsg)