From 0f07e33e1a30ec2c96ea67458b469bf634ea4a5a Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Wed, 3 Dec 2008 17:32:16 +0000 Subject: [PATCH] Removed REVISION, makes no sense. Import and use python psyco library to speed up if it's installed: it's optional. --- lib/core/exception.py | 4 +--- lib/core/settings.py | 1 - sqlmap.py | 7 +++++++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/core/exception.py b/lib/core/exception.py index 8c1c21bb5..71973e2d4 100644 --- a/lib/core/exception.py +++ b/lib/core/exception.py @@ -26,7 +26,6 @@ Franklin St, Fifth Floor, Boston, MA 02110-1301 USA import sys -from lib.core.settings import REVISION from lib.core.settings import VERSION from lib.core.settings import VERSION_STRING @@ -91,8 +90,7 @@ def unhandledException(): errMsg = "unhandled exception in %s, please copy " % VERSION_STRING errMsg += "the command line and the following text and send by e-mail " errMsg += "to sqlmap-users@lists.sourceforge.net. The developers will " - errMsg += "fix it as soon as possible:\nsqlmap version: %s " % VERSION - errMsg += "(SVN revision: %s)\n" % REVISION + errMsg += "fix it as soon as possible:\nsqlmap version: %s\n" % VERSION errMsg += "Python version: %s\n" % sys.version.split()[0] errMsg += "Operating system: %s" % sys.platform return errMsg diff --git a/lib/core/settings.py b/lib/core/settings.py index 967b797fd..2da0d95b3 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -30,7 +30,6 @@ import sys # sqlmap version and site -REVISION = "$Revision$" VERSION = "0.6.3-rc3" VERSION_STRING = "sqlmap/%s" % VERSION SITE = "http://sqlmap.sourceforge.net" diff --git a/sqlmap.py b/sqlmap.py index 7dfea99fb..a88853d43 100755 --- a/sqlmap.py +++ b/sqlmap.py @@ -29,6 +29,13 @@ import sys import time import traceback +try: + import psyco + psyco.full() + psyco.profile() +except ImportError, _: + pass + from lib.controller.controller import start from lib.core.common import banner from lib.core.common import setPaths