[Twisted-Python] [PATCH] Accept and accept-language parsing

mattam at netcourrier.com mattam at netcourrier.com
Thu Sep 26 05:44:12 EDT 2002

On Sun, Sep 22, 2002 at 07:38:31AM -0500, Glyph Lefkowitz wrote: 
> On Sun, 22 Sep 2002 14:46:45 +0200, <mattam at netcourrier.com> wrote:
> > On Sun, Sep 22, 2002 at 01:23:43AM +0200, mattam at netcourrier.com wrote: 
> > > 	here's a patch for parsing accept and accept-language HTTP headers.
> > Here's a corriged patch, ready for inclusion (diff with http.py v1.41,
> > -p0).
> Could you please provide some unit tests in this patch, both for the parsing of
> accept-language and the priority queue itself?  That would provide some basic
> documentation of the API as well.  Thanks!
> -- 

I added lowerThan and higherThan methods to PriorityQueue and tests for
all the new things. As it is my first TestCase, please tell me if
anything could be done in a better manner or if my tests are incomplete.


"Life is pleasant. Death is peaceful. It's the transition that's 
troublesome."- Isaac Asimov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: accept.patch.2.gz
Type: application/x-gunzip
Size: 3348 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20020926/c1d6f970/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20020926/c1d6f970/attachment.pgp 

More information about the Twisted-Python mailing list