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

Python 3 porting fixes #10

Merged
merged 10 commits into from
Jan 20, 2014
Merged

Python 3 porting fixes #10

merged 10 commits into from
Jan 20, 2014

Conversation

exarkun
Copy link
Member

@exarkun exarkun commented Jan 18, 2014

This should address #3 as well as some compatibility problems pointed out by Twisted's test suite.

The gist of this branch is loosening of the requirements that values which only make sense as sequences of bytes be represented using the bytes type only. Instead, a text type is now allowed and converted to bytes using either UTF-8 (filenames) or ASCII (everything else).

@exarkun
Copy link
Member Author

exarkun commented Jan 18, 2014

This should address #3 as well as some compatibility problems pointed out by Twisted's test suite.

The reason for mixing these unrelated things together is that Twisted supports only Python 3.3, not Python 3.2, and my Python 3.3 build apparently tripped over all of the same issues that the OS X "brewed" Python from #3 tripped over.

@hynek
Copy link
Contributor

hynek commented Jan 18, 2014

I’ve just verified that it fixes both #3 (error strings) and #7 (missing ciphers) for me!

@exarkun
Copy link
Member Author

exarkun commented Jan 18, 2014

travis-ci just reminded me that this will require cryptography 0.2.

exarkun added a commit that referenced this pull request Jan 20, 2014
Correct some mistakes made during earlier Python 3 porting work.  Mainly, keep accepting both bytes and unicode in a few APIs.
@exarkun exarkun merged commit df45499 into master Jan 20, 2014
@exarkun exarkun deleted the python3-porting-fixes branch January 20, 2014 20:01
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants