mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-11 19:13:12 +00:00
Python3 is a game-changer and I won't loose my mind
This commit is contained in:
parent
41c3139c01
commit
e56c422a8c
5 changed files with 52 additions and 43 deletions
|
|
@ -68,6 +68,7 @@ try:
|
|||
from lib.core.settings import UNICODE_ENCODING
|
||||
from lib.core.settings import VERSION
|
||||
from lib.parse.cmdline import cmdLineParser
|
||||
from thirdparty.six import PY2
|
||||
except KeyboardInterrupt:
|
||||
errMsg = "user aborted"
|
||||
|
||||
|
|
@ -161,7 +162,7 @@ def main():
|
|||
liveTest()
|
||||
else:
|
||||
from lib.controller.controller import start
|
||||
if conf.profile:
|
||||
if conf.profile and PY2:
|
||||
from lib.core.profiling import profile
|
||||
globals()["start"] = start
|
||||
profile()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue