Skip to content

Commit

Permalink
turn on warning filter to print deprecation warning by default
Browse files Browse the repository at this point in the history
  • Loading branch information
roycaihw committed Nov 12, 2019
1 parent 9d29ac1 commit b316493
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kubernetes/client/apis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

# alias kubernetes.client.api package and print deprecation warning
from kubernetes.client.api import *

warnings.filterwarnings('default', module='kubernetes.client.apis')
warnings.warn(
"The package kubernetes.client.apis is renamed and deprecated, use kubernetes.client.api instead (please note that the trailing s was removed).",
DeprecationWarning
Expand Down

0 comments on commit b316493

Please sign in to comment.