r0x0r/pywebview

`ssl.wrap_socket()` has been removed in Python 3.12

Closed this issue · 0 comments

Specification

  • pywebview version: master
  • operating system: not applicable
  • web renderer: not applicable

Description

webview.start(..., ssl=True) fails on Python 3.12, because it calls ssl.wrap_socket(...), and that module-level function has been removed in 3.12. The recommended approach is to instantiate and configure a SSLContext and call that context's .wrap_socket() method instead.

PR: #1407

The PR also fixes a couple of other minor Darwin-specific issues.

Practicalities

  • YES, I am willing to work on this issue myself.

  • NO, I am not prepared to support this issue financially.