Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
safeedge
pyroute2
Commits
ad2a2a1f
Commit
ad2a2a1f
authored
Apr 17, 2020
by
Peter V. Saveliev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ipdb: log deprecation warning
parent
4e00cd82
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
pyroute2/ipdb/main.py
pyroute2/ipdb/main.py
+5
-1
No files found.
pyroute2/ipdb/main.py
View file @
ad2a2a1f
...
...
@@ -701,7 +701,8 @@ try:
import
queue
except
ImportError
:
import
Queue
as
queue
# The module is called 'Queue' in Python2
# prepare to deprecate the module
# import warnings
from
functools
import
partial
from
pprint
import
pprint
from
pyroute2
import
config
...
...
@@ -809,6 +810,9 @@ class IPDB(object):
nl_bind_groups
=
RTMGRP_DEFAULTS
,
ignore_rtables
=
None
,
callbacks
=
None
,
sort_addresses
=
False
,
plugins
=
None
):
msg
=
'https://docs.pyroute2.org/ipdb_toc.html'
log
.
warning
(
'Deprecation warning '
+
msg
)
# warnings.warn(DeprecationWarning(msg))
plugins
=
plugins
or
[
'interfaces'
,
'routes'
,
'rules'
]
pmap
=
{
'interfaces'
:
interfaces
,
'routes'
:
routes
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment