Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 950df11

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kubernetes/client/apis/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
# alias kubernetes.client.api package and print deprecation warning
77
from kubernetes.client.api import *
8+
warnings.simplefilter('default')
89
warnings.warn(
910
"The package kubernetes.client.apis is renamed and deprecated, use kubernetes.client.api instead (please note that the trailing s was removed).",
1011
DeprecationWarning

0 commit comments

Comments
 (0)