Repository navigation
Merged-to-master Python 3 branch - #276
Conversation
Create constants for byte messages, implement asbytes so many methods can take Message and key objects directly and split get_string into get_text and get_binary. Also, change int handling to use mpint with a flag whenever the int is greater than 32 bits.
|
@asmeurer Yea I saw that when it was first publicized but it felt sufficiently less mature than six (which is saying something ;)) that I didn't really jump on it. |
|
OK, I bumped the |
|
I personally agree with @scottkmaxwell about just using your own compatibility file. Even for very large projects they are not very large, and if anything, they can help you to learn the differences between the two. The advantage of using a library like six or futures is that some of the changes can be subtle, and especially if your tests aren't great (I don't know how they are for Fabric or Paramiko), you can miss things. For example, just the other day I discovered that in Python 3, |
Sure, but I maintain it's no different from any other library/code-reuse use case, and as somebody with a half dozen or more projects, I loathe copy-pasting the same crap between projects for no good reason :) In a project of this size & with this much low level tomfoolery, we'll need some custom shim code no matter what, but I'd be very surprised if we couldn't replace a good chunk of common functionality with But again, this is now a discussion for #277 :) |
|
Fix is in. I also fixed a bunch of PEP8 issues that PyLint complained about. Lots of stuff like |
|
BTW, PIP also does their own compat layer. |
|
@bitprophet I added a few inline comments to GitHub here: scottkmaxwell@f0017b8 Explaining why I made certain changes. All of the formatting changes in this branch are ones that were flagged by the PEP8 scanner built into PyCharm. There is only one |
|
@bitprophet I was trying out the Py3 branch and I noticed that |
|
@scottkmaxwell Sweet deal, thanks! And +1 on more PEP8 fixes, me and PEP8 agree 99% of the time. I'll merge & test that out ASAP. @derekchiang I don't know offhand, depends who first indicated that change during this process (this branch is built on a bunch of folks' earlier work, even if the Git history is mostly myself and @scottkmaxwell). I'll look quickly but if those are just file paths I think I'd agree with you. |
|
@derekchiang I don't even see those terms in the codebase, actually, can you provide a specific link? @scottkmaxwell Merged & all tests pass incl Fab's suite on Py2 \o/ thanks again! |
|
Right, forgot that doc building still doesn't work under Py3 for some dumb reason, even though Jinja is supposed to be Py3 compat? But that's not a huge concern at the moment so I may just tell Travis to skip that step under Python 3 for now. |
|
Confirmed that even Jinja2 2.7 breaks under Python 3, so yea, updating the travis.yml for now :( EDIT: hm except it seems to work on one of my other dual interpreter projects, so perhaps the error message is misleading. Digging. EDIT 2: Yea, was a stray |
|
That seems cleared up now. I...I think we can merge? SO SCARED |
Merged-to-master Python 3 branch
|
Cheers!!!!!!!!!! |
|
Yay! |
|
Congratulation :) |
|
Sweet! Great job. So Jinja2 wasn't an issue?
|
|
Great work! |
How I got here:
Then poking at all the conflicts, some of which required the following (given that I shuffled some files around in #256, this made it a lot easier to figure out what the incoming branch had actually changed):
And now trying to ensure that the test suite passes again.