Re: [Twisted-Python] understanding twisted, better error handling

2017-01-11 Thread Glyph Lefkowitz
> On Jan 10, 2017, at 3:19 PM, steven meiers wrote: > > Am Montag, den 09.01.2017, 23:12 -0800 schrieb Glyph Lefkowitz: >> >> >>> On Jan 9, 2017, at 5:20 PM, steven meiers >>> wrote: >>> >>> the error does come up when you give agent.request a "GET" instead >>> of a >>> b"GET". >> >> That's

Re: [Twisted-Python] understanding twisted, better error handling

2017-01-11 Thread steven meiers
Am Montag, den 09.01.2017, 23:12 -0800 schrieb Glyph Lefkowitz: > > > > On Jan 9, 2017, at 5:20 PM, steven meiers > > wrote: > > > > the error does come up when you give agent.request a "GET" instead > > of a > > b"GET". > > That's expected; you do have to pass the method as `bytes`, as > docu

Re: [Twisted-Python] understanding twisted, better error handling

2017-01-10 Thread Tristan Seligmann
On Wed, 11 Jan 2017 at 02:26 steven meiers wrote: > True, but since python 2.x is still shipped with debian testing for > example there will be some people running into this issue. > Just to make twisted more approachable this could he handled. > The b'GET' syntax for byte strings works on Pytho

Re: [Twisted-Python] understanding twisted, better error handling

2017-01-10 Thread steven meiers
Am Montag, den 09.01.2017, 23:12 -0800 schrieb Glyph Lefkowitz: > > > > On Jan 9, 2017, at 5:20 PM, steven meiers > > wrote: > > > > the error does come up when you give agent.request a "GET" instead > > of a > > b"GET". > > That's expected; you do have to pass the method as `bytes`, as > docu

Re: [Twisted-Python] understanding twisted, better error handling

2017-01-09 Thread Glyph Lefkowitz
> On Jan 9, 2017, at 5:20 PM, steven meiers wrote: > > the error does come up when you give agent.request a "GET" instead of a > b"GET". That's expected; you do have to pass the method as `bytes`, as documented here: https://twistedmatrix.com/documents/16.6.0/api/twisted.web.iweb.IAgent.html#