On Fri, 6 Jan 2017 at 21:21 steven meiers <commercial...@yahoo.de> wrote:
> glyph (without seeing the the code or backtrace) suggested that: > "I think the issue might be that it doesn't support bytes() on py3, > it's registered against str() or something" > Actually, the problem is the reverse of this; only bytes is supported, but you're passing str (unicode) in. > somepage = yield treq.post(target_url, json.dumps({hmac: key, > "username": username, 'pw':'', 'gender':'m', 'aaaa':''}), > json.dumps returns str (ie. unicode) on py3; throwing in a .encode('utf-8') here is probably what you want.
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python