summaryrefslogtreecommitdiffstats
path: root/Lib/Cookie.py
Commit message (Collapse)AuthorAgeFilesLines
* Since this module already uses doctest-style examples, I figured I'dGuido van Rossum2001-04-061-4/+10
| | | | | | | | | | | | | | | add a self-test using doctest. Results: - The docstring needs to be a raw string because it uses \"...\". - The oreo example was broken: the Set-Cookie output doesn't add quotes around "doublestuff". - I had to change the example that prints the class of a Cookie.Cookie instance to avoid incorporating an arbitrary object address in the test output. Pretty good score for both doctest and the doc string, I'd say!
* Patch #103473 from dougfort: Some sites (amazon.com for one) dropAndrew M. Kuchling2001-02-201-2/+2
| | | | | | cookies that contain '=' as part of the value. This patch modifies Cookie.py to allow '=' as a legal character, and to make the key search nongreedy so it stops at the first '='.
* added __all__ lists to a number of Python modulesSkip Montanaro2001-01-201-0/+2
| | | | | | | | added test script and expected output file as well this closes patch 103297. __all__ attributes will be added to other modules without first submitting a patch, just adding the necessary line to the test script to verify more-or-less correct implementation.
* Whitespace normalization.Tim Peters2001-01-141-14/+14
|
* Update the code to better reflect recommended style:Fred Drake2000-12-121-1/+1
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* Whitespace cleanup; now passes the regression test (the last checkin madeFred Drake2000-08-241-21/+15
| | | | | | | it fail on a TabError (inconsistent tab/space usage)). Removed a comment about including a test since there is a regression test for this module.
* Updated version of Cookie.py (rev. 2.29) from timoAndrew M. Kuchling2000-08-241-19/+33
|
* Added Tim O'Malley's Cookie.py module (master version atAndrew M. Kuchling2000-08-191-0/+718
http://www.timo-tasi.org/python/Cookie.py) This is revision 2.26 according to Tim's RCS history.