-
Notifications
You must be signed in to change notification settings - Fork 786
Fix Python 3.8 file operations #431
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
Conversation
|
|
||
| def __init__(self, mux, channel): | ||
| SockWrapper.__init__(self, mux.rsock, mux.wsock) | ||
| SockWrapper.__init__(self, mux.rfile, mux.wfile) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit weird that SockWrapper needs to be able to work with files and socks.
|
@brianmay are you planning to merge this soon? |
|
@outime I am anticipating people will get upset when they realize I dropped support for Python 2.4. See #56. But I somewhat think it is time to drop support for Python 2.x. Maybe apply the scream test. As in apply this change and see if anyone screams about it... Anybody able to test this with Python 3.8? I only have Python 3.7 on my servers. I think it should work... |
|
This should fix #381 |
I just tried this with 3.8 and still getting the following: |
|
Shane Witbeck <notifications@github.com> writes:
I just tried this with 3.8 and still getting the following:
Not good.
Can I please verify if this works for you?
* With Python 3.7 with this change?
* With Python 3.7 without this change?
--
Brian May <brian@linuxpenguins.xyz>
https://linuxpenguins.xyz/brian/
|
Not Shane but earlier today I ran the pip release with the latest Python 3.7 and worked fine. Haven't tried with this change. |
I get the same result (not working with and without change) using Python 3.7.7 client with 3.7.5 server: |
|
Please disregard my comment above. My issue seems not related to Python version and was able to get things working again. See: #434 (comment) |
|
OK, that makes more sense, thanks for the update. Not that I really trust this PR. I tested it for about 10 seconds, it it appeared to work fine for me... |
Under Python 3.8 we can not wrap a File in a Sock. Note this currently requires Python >= 3.5
* Drop 2.7 * Add 3.7 and 3.8
|
This does seem to work for me. I am going to use the scream test as a reliable way of testing if (a) this works for everybody and (b) people are happy dropping Python 2.7 support. Merging... |
|
Sorry to bump a merged PR, curious though, when will this hit in a release? |
|
Version 1.0.1 now released. |
Under Python 3.8 we can not wrap a File in a Sock.
Note this currently requires Python >= 3.5