| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Fix a few warnings flagged by PyDev | David Pursehouse | 2013-07-22 | 1 | -1/+1 |
| | | | | | | | - Unused import of urlparse - Unnecessary definition of variable - Incorrect indentation | ||||
| * | Rewrite CaseInsensitiveDict to work correctly/sanely | Colin Dunklau | 2013-04-30 | 1 | -26/+63 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #649 and #1329 by making Session.headers a CaseInsensitiveDict, and fixing the implementation of CID. Credit for the brilliant idea to map `lowercased_key -> (cased_key, mapped_value)` goes to @gazpachoking, thanks a bunch. Changes from original implementation of CaseInsensitiveDict: 1. CID is rewritten as a subclass of `collections.MutableMapping`. 2. CID remembers the case of the last-set key, but `__setitem__` and `__delitem__` will handle keys without respect to case. 3. CID returns the key case as remembered for the `keys`, `items`, and `__iter__` methods. 4. Query operations (`__getitem__` and `__contains__`) are done in a case-insensitive manner: `cid['foo']` and `cid['FOO']` will return the same value. 5. The constructor as well as `update` and `__eq__` have undefined behavior when given multiple keys that have the same `lower()`. 6. The new method `lower_items` is like `iteritems`, but keys are all lowercased. 7. CID raises `KeyError` for `__getitem__` as normal dicts do. The old implementation returned 6. The `__repr__` now makes it obvious that it's not a normal dict. See PR #1333 for the discussions that lead up to this implementation | ||||
| * | it`s more pep8 now | oczkers | 2013-01-27 | 1 | -0/+2 |
| | | |||||
| * | CHUNKED REQUESTS! | Kenneth Reitz | 2013-01-10 | 1 | -0/+22 |
| | | |||||
| * | Fixes #817. | Ian Cordasco | 2012-09-02 | 1 | -0/+1 |
| | | | | | | Use dicts and lists where necessary but accept both dicts and lists of 2-tuples everywhere. | ||||
| * | no more multidict | Kenneth Reitz | 2012-08-21 | 1 | -358/+0 |
| | | |||||
| * | MultiDict | Kenneth Reitz | 2012-08-21 | 1 | -0/+357 |
| | | |||||
| * | Whitespace fixes following PEP8. | Locker537 | 2012-08-16 | 1 | -0/+1 |
| | | |||||
| * | Expose case-insensitive key access when deleting a key from CaseInsensitiveDict | Marcin Wielgoszewski | 2012-05-16 | 1 | -1/+1 |
| | | |||||
| * | blah | Kenneth Reitz | 2012-01-23 | 1 | -2/+2 |
| | | |||||
| * | test fix | Kenneth Reitz | 2011-11-12 | 1 | -0/+1 |
| | | |||||
| * | Some Doc and doctoring fixes by the Speling Poleece. | travis | 2011-10-19 | 1 | -1/+1 |
| | | |||||
| * | supporting codes class | Kenneth Reitz | 2011-08-13 | 1 | -0/+18 |
| | | |||||
| * | structures: CaseInsensitiveDict.__delitem__ missing "value" fix | Gulácsi Tamás | 2011-07-23 | 1 | -1/+1 |
| | | |||||
| * | structures: little bit more general, lower-key-caching version of ↵ | Gulácsi Tamás | 2011-07-23 | 1 | -6/+25 |
| | | | | | CaseInsensitiveDict | ||||
| * | Subclass dict for CaseInsensitiveDict. | James Rowe | 2011-05-27 | 1 | -40/+4 |
| | | |||||
| * | Big API update | Kenneth Reitz | 2011-05-16 | 1 | -1/+4 |
| | | |||||
| * | pass things into the dict | Kenneth Reitz | 2011-05-14 | 1 | -2/+2 |
| | | |||||
| * | Headers: Default to None | Kenneth Reitz | 2011-05-14 | 1 | -5/+2 |
| | | |||||
| * | New CaseInsensitiveDict | Kenneth Reitz | 2011-05-14 | 1 | -332/+36 |
| | | |||||
| * | preliminary multidicts | Kenneth Reitz | 2011-04-15 | 1 | -0/+360 |
