twython3k search queries fail due to bytes vs. str #43
Labels
No labels
Bug
Enhancement
Feature Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: code/twython#43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
JSON unpack seems to be failing because a bytes object is subjected to a string operation. Repro code plus TB below:
below is my half-attempt at a patch, which involves tweaking some stuff which may break other things, but it does work for searches.
other functionality such as userTimeline and verifyCredentials work with or without the patch. at first, i thought the bug was going to be present for all commands that take parameters since clearly those that don't were still working. however, since updateStatus also works, i've got to conclude it's because the problem lies in twython3k.Twython.searchTwitter() which duplicates code in twython3k.Twython.get(). IOW, the bug was fixed in get() but not in searchTwitter() due to similar code being in 2 places. (i understand this may be required since searching is more complex than the other operations.)
Whew! Sorry about this taking so long to get to, bunch of random things I had to deal with. I think this should be good now with the 1.4.4 release, but as always please feel free to test and confirm.
I also updated twitter_endpoints, as I believe it was you over Twitter who pointed out how woefully out of date it was. Cheers.
close, just some small issues remaining which i've filed separately... sorry to bother you with all this. i know the world isn't using Python 3 yet, but i'm trying to ensure a smooth experience for those who do moving forward! :-)
It's not a bother; if I put software out there for people to use, I'll do what I can to maintain it properly. Your efforts are well received, at least in my mind.
As always, let me know if you find anything else!