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

Skip to content

Commit 0f07e33

Browse files
committed
Removed REVISION, makes no sense.
Import and use python psyco library to speed up if it's installed: it's optional.
1 parent e3ddbe7 commit 0f07e33

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

lib/core/exception.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
import sys
2828

29-
from lib.core.settings import REVISION
3029
from lib.core.settings import VERSION
3130
from lib.core.settings import VERSION_STRING
3231

@@ -91,8 +90,7 @@ def unhandledException():
9190
errMsg = "unhandled exception in %s, please copy " % VERSION_STRING
9291
errMsg += "the command line and the following text and send by e-mail "
9392
errMsg += "to [email protected]. The developers will "
94-
errMsg += "fix it as soon as possible:\nsqlmap version: %s " % VERSION
95-
errMsg += "(SVN revision: %s)\n" % REVISION
93+
errMsg += "fix it as soon as possible:\nsqlmap version: %s\n" % VERSION
9694
errMsg += "Python version: %s\n" % sys.version.split()[0]
9795
errMsg += "Operating system: %s" % sys.platform
9896
return errMsg

lib/core/settings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131

3232
# sqlmap version and site
33-
REVISION = "$Revision$"
3433
VERSION = "0.6.3-rc3"
3534
VERSION_STRING = "sqlmap/%s" % VERSION
3635
SITE = "http://sqlmap.sourceforge.net"

sqlmap.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
import time
3030
import traceback
3131

32+
try:
33+
import psyco
34+
psyco.full()
35+
psyco.profile()
36+
except ImportError, _:
37+
pass
38+
3239
from lib.controller.controller import start
3340
from lib.core.common import banner
3441
from lib.core.common import setPaths

0 commit comments

Comments
 (0)