Skip to content

Commit

Permalink
Fix deprecation warnings
Browse files Browse the repository at this point in the history
Since Python 3.10 `ssl.PROTOCOL_TLS` is deprecated and is replaced by `ssl.PROTOCOL_TLS_CLIENT`
  • Loading branch information
danielkaiser committed May 3, 2023
1 parent 8eb434e commit 0e0aeea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chromedriver_binary/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

try:
from urllib.request import urlopen, URLError
ssl_context = ssl.SSLContext()
ssl_context = ssl.create_default_context()
except ImportError:
from urllib2 import urlopen, URLError
ssl_context = ssl.SSLContext(protocol=ssl.PROTOCOL_TLS)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
try:
from io import BytesIO
from urllib.request import urlopen, URLError
ssl_context = ssl.SSLContext()
ssl_context = ssl.create_default_context()
except ImportError:
from StringIO import StringIO as BytesIO
from urllib2 import urlopen, URLError
Expand Down

0 comments on commit 0e0aeea

Please sign in to comment.