File tree 1 file changed +15
-11
lines changed
1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change 28
28
29
29
# Constants must be set before importing any other pydevd module
30
30
# # due to heavy use of "from" in them.
31
- with vendored ('pydevd' ):
32
- pydevd_constants = import_module ('_pydevd_bundle.pydevd_constants' )
31
+ with warnings .catch_warnings ():
32
+ warnings .simplefilter ("ignore" , category = DeprecationWarning )
33
+ with vendored ('pydevd' ):
34
+ pydevd_constants = import_module ('_pydevd_bundle.pydevd_constants' )
33
35
# We limit representation size in our representation provider when needed.
34
36
pydevd_constants .MAXIMUM_VARIABLE_REPRESENTATION_SIZE = 2 ** 32
35
37
36
38
# Now make sure all the top-level modules and packages in pydevd are
37
39
# loaded. Any pydevd modules that aren't loaded at this point, will
38
40
# be loaded using their parent package's __path__ (i.e. one of the
39
41
# following).
40
- preimport ('pydevd' , [
41
- '_pydev_bundle' ,
42
- '_pydev_runfiles' ,
43
- '_pydevd_bundle' ,
44
- '_pydevd_frame_eval' ,
45
- 'pydev_ipython' ,
46
- 'pydevd_plugins' ,
47
- 'pydevd' ,
48
- ])
42
+ with warnings .catch_warnings ():
43
+ warnings .simplefilter ("ignore" , category = DeprecationWarning )
44
+ preimport ('pydevd' , [
45
+ '_pydev_bundle' ,
46
+ '_pydev_runfiles' ,
47
+ '_pydevd_bundle' ,
48
+ '_pydevd_frame_eval' ,
49
+ 'pydev_ipython' ,
50
+ 'pydevd_plugins' ,
51
+ 'pydevd' ,
52
+ ])
49
53
50
54
# When pydevd is imported it sets the breakpoint behavior, but it needs to be
51
55
# overridden because by default pydevd will connect to the remote debugger using
You can’t perform that action at this time.
0 commit comments