mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-29 04:50:58 +00:00
Minor update
This commit is contained in:
parent
149bdd836b
commit
02ae09e154
4 changed files with 11 additions and 6 deletions
|
|
@ -32,14 +32,18 @@ try:
|
|||
import traceback
|
||||
import warnings
|
||||
|
||||
try:
|
||||
ResourceWarning
|
||||
except NameError:
|
||||
ResourceWarning = Warning
|
||||
|
||||
if "--deprecations" not in sys.argv:
|
||||
warnings.filterwarnings(action="ignore", category=DeprecationWarning)
|
||||
else:
|
||||
warnings.resetwarnings()
|
||||
warnings.filterwarnings(action="ignore", message="'crypt'", category=DeprecationWarning)
|
||||
warnings.simplefilter("ignore", category=ImportWarning)
|
||||
if sys.version_info >= (3, 0):
|
||||
warnings.simplefilter("ignore", category=ResourceWarning)
|
||||
warnings.simplefilter("ignore", category=ResourceWarning)
|
||||
|
||||
warnings.filterwarnings(action="ignore", message="Python 2 is no longer supported")
|
||||
warnings.filterwarnings(action="ignore", message=".*was already imported", category=UserWarning)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue