8000 turn on warning filter to print deprecation warning by default · lithix-src/python@b316493 · GitHub
[go: up one dir, main page]

Skip to content

Commit b316493

Browse files
committed
turn on warning filter to print deprecation warning by default
1 parent 9d29ac1 commit b316493

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kubernetes/client/apis/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
# alias kubernetes.client.api package and print deprecation warning
77
from kubernetes.client.api import *
8+
9+
warnings.filterwarnings('default', module='kubernetes.client.apis')
810
warnings.warn(
911
"The package kubernetes.client.apis is renamed and deprecated, use kubernetes.client.api instead (please note that the trailing s was removed).",
1012
DeprecationWarning

0 commit comments

Comments
 (0)
0