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

Fix some of the Twisted web examples on Python 3 #1385

Merged
merged 10 commits into from
Sep 15, 2020

Conversation

rodrigc
Copy link
Contributor

@rodrigc rodrigc commented Sep 14, 2020

Contributor Checklist:

@rodrigc rodrigc requested a review from twm September 14, 2020 23:31
Copy link
Contributor

@twm twm left a comment

Choose a reason for hiding this comment

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

This looks good! I think that there is still a type error with static.Data that should be addressed before merge. Additionally, please uncomment this line:

; docs/web/examples

Thanks!

(request.write(s+"\n"), request.finish()))
deferred.addErrback(lambda s:
(request.write(str(s)), request.finish()))
deferred.addCallback(lambda s: (request.write(s + b"\n"), request.finish()))
Copy link
Contributor

Choose a reason for hiding this comment

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

Man, this is a gross hack. Not that you should fix it now, I just couldn't let it pass.

docs/web/examples/rootscript.py Outdated Show resolved Hide resolved
@rodrigc rodrigc force-pushed the 9959-rodrigc-twisted-web-py3 branch from 60eb182 to 605d765 Compare September 15, 2020 07:17
@rodrigc rodrigc merged commit ba58dab into trunk Sep 15, 2020
@rodrigc rodrigc deleted the 9959-rodrigc-twisted-web-py3 branch September 15, 2020 07:50
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.

2 participants