Skip to content

Commit

Permalink
Merge pull request #97 from citrusleaf/suppress-cryptography-python35…
Browse files Browse the repository at this point in the history
…-deprecation-warning

fix regex of warning filter
  • Loading branch information
Jesse S authored Oct 30, 2020
2 parents 9d165bb + e8eff05 commit c67212f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/client/assocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
try:
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=DeprecationWarning)
warnings.filterwarnings("ignore", message="Python 3.5 support will be \
dropped in the next release of cryptography. Please upgrade your Python.")
warnings.filterwarnings("ignore", message="Python 3.5 support will be dropped in the next release of cryptography. Please upgrade your Python.")
import cryptography
from cryptography import utils
with warnings.catch_warnings():
Expand Down
3 changes: 1 addition & 2 deletions lib/client/ssl_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
try:
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=DeprecationWarning)
warnings.filterwarnings("ignore", message="Python 3.5 support will be \
dropped in the next release of cryptography. Please upgrade your Python.")
warnings.filterwarnings("ignore", message="Python 3.5 support will be dropped in the next release of cryptography. Please upgrade your Python.")

try:
# for python < 2.7.7 cryptography throws warning
Expand Down

0 comments on commit c67212f

Please sign in to comment.