-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
These files are not standalone Python files.
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 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:
Line 46 in e1c54d7
; 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())) |
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.
Man, this is a gross hack. Not that you should fix it now, I just couldn't let it pass.
60eb182
to
605d765
Compare
Contributor Checklist:
review
to the keywords field in Trac, and putting a link to this PR in the comment; it shows up in https://twisted.reviews/ now.