Merge pull request !2819 from rhodecode-enterprise-ce fix/suppress-deprecation-warning

fix: supressed for ssh as well
This commit is contained in:
Andrii Verbytskyi 2025-09-19 17:12:01 +00:00
commit b760c7a2a6
2 changed files with 10 additions and 0 deletions

View file

@ -16,6 +16,11 @@
# RhodeCode Enterprise Edition, including its added features, Support services,
# and proprietary license terms, please see https://rhodecode.com/licenses/
import warnings
warnings.filterwarnings("ignore", message="pkg_resources is deprecated as an API.*", category=UserWarning)
warnings.filterwarnings("ignore", message="pkg_resources is deprecated as an API.*", category=DeprecationWarning)
import os
import sys
import time

View file

@ -24,6 +24,11 @@ WARNING: be really carefully with changing ANY imports in this file
# time PYTHONPROFILEIMPORTTIME=1 rc-ssh-wrapper-v2 --debug --mode=test .dev/dev.ini
"""
import warnings
warnings.filterwarnings("ignore", message="pkg_resources is deprecated as an API.*", category=UserWarning)
warnings.filterwarnings("ignore", message="pkg_resources is deprecated as an API.*", category=DeprecationWarning)
import os
import sys
import time