From 4237333dcae852f891f5df085b8b3704504bb344 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 13 Feb 2016 21:28:02 +0100 Subject: [PATCH] Minor nuisance patch --- sqlmap.py | 2 ++ sqlmapapi.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/sqlmap.py b/sqlmap.py index 6bbc682ad..9d76134c3 100755 --- a/sqlmap.py +++ b/sqlmap.py @@ -16,6 +16,8 @@ import time import traceback import warnings +sys.dont_write_bytecode = True + warnings.filterwarnings(action="ignore", message=".*was already imported", category=UserWarning) warnings.filterwarnings(action="ignore", category=DeprecationWarning) diff --git a/sqlmapapi.py b/sqlmapapi.py index e31582b53..7aa369f53 100755 --- a/sqlmapapi.py +++ b/sqlmapapi.py @@ -7,6 +7,9 @@ See the file 'doc/COPYING' for copying permission import logging import optparse +import sys + +sys.dont_write_bytecode = True from lib.utils import versioncheck # this has to be the first non-standard import