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

mattam at netcourrier.com mattam at netcourrier.com
Thu Sep 26 03:44:12 MDT 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.

Bye!

-- 
"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: </pipermail/twisted-python/attachments/20020926/c1d6f970/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20020926/c1d6f970/attachment.sig>


More information about the Twisted-Python mailing list