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

Update examples to work on Python 3 #152

Merged
merged 1 commit into from Mar 1, 2017
Merged

Conversation

twm
Copy link
Contributor

@twm twm commented Dec 2, 2016

As pointed out in #151 the basic_post.py example didn't work in Python 3. This also updates the others to be source compatible.

@codecov-io
Copy link

codecov-io commented Dec 2, 2016

Codecov Report

Merging #152 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #152   +/-   ##
=======================================
  Coverage   96.54%   96.54%           
=======================================
  Files          20       20           
  Lines        1738     1738           
  Branches      154      154           
=======================================
  Hits         1678     1678           
  Misses         39       39           
  Partials       21       21

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 315cc24...60ca27d. Read the comment docs.

@glyph
Copy link
Member

glyph commented Jan 17, 2017

I do wish we had better automated coverage of examples, but manually testing, this looks like a great upgrade. I didn't even know about treq.response.Response, I thought that responses were twisted.web.iweb.IResponses - this is way handier, so I learned something from this doc upgrade as well :)

@glyph
Copy link
Member

glyph commented Jan 17, 2017

(Just waiting for CI to finish; will merge when it does.)

@twm
Copy link
Contributor Author

twm commented Feb 12, 2017

@glyph I rebased this to see if it fails in the same way as #149.

As pointed out in twisted#151 the basic_post.py example didn't work in Python
3. This also updates the others to be source compatible.
@twm
Copy link
Contributor Author

twm commented Feb 22, 2017

Rebased again.

@twm
Copy link
Contributor Author

twm commented Feb 28, 2017

@glyph, anybody: Merge please?

@glyph
Copy link
Member

glyph commented Mar 1, 2017

Looks good to me. Thanks for doing this!

@glyph glyph merged commit 473393e into twisted:master Mar 1, 2017
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.

None yet

3 participants