mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Suppress DeprecationWarning from pydevd due to pkg_resources.declare_namespace (#1230)
This commit is contained in:
parent
bc44eb85ff
commit
00bc5136e4
1 changed files with 15 additions and 11 deletions
|
|
@ -28,6 +28,8 @@ if "PYDEVD_USE_FRAME_EVAL" not in os.environ:
|
||||||
|
|
||||||
# Constants must be set before importing any other pydevd module
|
# Constants must be set before importing any other pydevd module
|
||||||
# # due to heavy use of "from" in them.
|
# # due to heavy use of "from" in them.
|
||||||
|
with warnings.catch_warnings():
|
||||||
|
warnings.simplefilter("ignore", category=DeprecationWarning)
|
||||||
with vendored('pydevd'):
|
with vendored('pydevd'):
|
||||||
pydevd_constants = import_module('_pydevd_bundle.pydevd_constants')
|
pydevd_constants = import_module('_pydevd_bundle.pydevd_constants')
|
||||||
# We limit representation size in our representation provider when needed.
|
# We limit representation size in our representation provider when needed.
|
||||||
|
|
@ -37,6 +39,8 @@ pydevd_constants.MAXIMUM_VARIABLE_REPRESENTATION_SIZE = 2 ** 32
|
||||||
# loaded. Any pydevd modules that aren't loaded at this point, will
|
# loaded. Any pydevd modules that aren't loaded at this point, will
|
||||||
# be loaded using their parent package's __path__ (i.e. one of the
|
# be loaded using their parent package's __path__ (i.e. one of the
|
||||||
# following).
|
# following).
|
||||||
|
with warnings.catch_warnings():
|
||||||
|
warnings.simplefilter("ignore", category=DeprecationWarning)
|
||||||
preimport('pydevd', [
|
preimport('pydevd', [
|
||||||
'_pydev_bundle',
|
'_pydev_bundle',
|
||||||
'_pydev_runfiles',
|
'_pydev_runfiles',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue