mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Capture deprecations even in nightly Python builds
This commit is contained in:
parent
4a12493d85
commit
c0be1da8b1
4 changed files with 8 additions and 3 deletions
|
|
@ -37,9 +37,11 @@ try:
|
|||
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=DeprecationWarning)
|
||||
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