Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Python 3.7 #14

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Add support for Python 3.7 #14

wants to merge 7 commits into from

Conversation

drbild
Copy link
Owner

@drbild drbild commented Mar 22, 2019

Fixes #11

@drbild drbild changed the title travis: build and test on Python 3.7 Build and test for Python 3.7 Dec 3, 2019
@drbild drbild changed the title Build and test for Python 3.7 Add support for Python 3.7 Dec 3, 2019
@rlaunch
Copy link

rlaunch commented Feb 10, 2021

In the meantime, this monkey-patch has gotten around the issue with using SSLPSK with Python 3.8+:

import sys
import sslpsk

# Monkey patch for SSLPSK
def _sslobj(sock):
    if (3, 5) <= sys.version_info <= (3, 7):
        return sock._sslobj._sslobj
    else:
        return sock._sslobj
sslpsk.sslpsk._sslobj = _sslobj

@rutgerhendriks
Copy link

In the meantime, this monkey-patch has gotten around the issue with using SSLPSK with Python 3.8+:

Thanks for this code snippet, it saved me a bunch of time!

It would be great if (pending inclusion of sslpsk in the stdlib -- grin) this would be released so sslpsk can be used out of the box again on Python 3.7 / 3.8 / .. -- hopeful smile :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for Python 3.7.0?
3 participants