mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Minor adjustments
This commit is contained in:
parent
99f07b64c5
commit
90b444c927
3 changed files with 7 additions and 5 deletions
|
|
@ -32,15 +32,17 @@ try:
|
|||
import traceback
|
||||
import warnings
|
||||
|
||||
if "--deprecations" not in sys.argv:
|
||||
warnings.filterwarnings(action="ignore", category=DeprecationWarning)
|
||||
else:
|
||||
warnings.resetwarnings()
|
||||
|
||||
warnings.filterwarnings(action="ignore", message="Python 2 is no longer supported")
|
||||
warnings.filterwarnings(action="ignore", message=".*was already imported", category=UserWarning)
|
||||
warnings.filterwarnings(action="ignore", message=".*using a very old release", category=UserWarning)
|
||||
warnings.filterwarnings(action="ignore", message=".*default buffer size will be used", category=RuntimeWarning)
|
||||
warnings.filterwarnings(action="ignore", category=UserWarning, module="psycopg2")
|
||||
|
||||
if "--deprecations" not in sys.argv:
|
||||
warnings.filterwarnings(action="ignore", category=DeprecationWarning)
|
||||
|
||||
from lib.core.data import logger
|
||||
|
||||
from lib.core.common import banner
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue