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

port to Python 3 #524

Closed
wants to merge 8 commits into from
Closed

port to Python 3 #524

wants to merge 8 commits into from

Conversation

chadwhitacre
Copy link
Contributor

Closes #493.

@chadwhitacre
Copy link
Contributor Author

Builds on #520.

@chadwhitacre
Copy link
Contributor Author

Currently hitting an issue with cookie handling: http://bugs.python.org/issue11315.

@pjz
Copy link
Contributor

pjz commented Oct 30, 2015

I did a bunch of this work a while ago, but never pushed it up because I got stuck. It's on the py3 branch.

@chadwhitacre
Copy link
Contributor Author

@@ -122,7 +119,7 @@ def hit(self, method, path='/', data=None, body=b'', content_type=MULTIPART_CONT
if content_type is MULTIPART_CONTENT:
body = encode_multipart(BOUNDARY, data)

environ = self.build_wsgi_environ(method, path, body, str(content_type), **headers)
environ = self.build_wsgi_environ(method, path, body, six.binary_type(content_type), **headers)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

six.binary_type is just bytes, and you shouldn't call it.

@chadwhitacre chadwhitacre mentioned this pull request Nov 5, 2015
@chadwhitacre
Copy link
Contributor Author

Closing this PR. Porting to Python 3 has proven to be a bridge too far for us: #526. 😞

@pjz
Copy link
Contributor

pjz commented Nov 30, 2015

I think I'd rather say that we're going to port to python 3 after we do the pending major restructuring.

@chadwhitacre
Copy link
Contributor Author

I think I'd rather say that we're going to port to python 3 after we do the pending major restructuring.

Do you think this PR is worth keeping open until then? Seems to me that the restructuring is major enough that it's not worth keeping this PR. We should start a new one.

@pjz
Copy link
Contributor

pjz commented Nov 30, 2015

Agreed; sorry, I thought this was the issue, not the PR.

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.

3 participants