diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-18 15:32:52 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-18 17:14:38 +0200 |
commit | 69e71097f7a9633a43d566b2a46aab370f07dce3 (patch) | |
tree | 117f58730fc647e219b362691f0365250b92c04f /netlib/http_cookies.py | |
parent | 40436ffb1f8293dde9217e2a0167e6c66b11d1f1 (diff) | |
download | mitmproxy-69e71097f7a9633a43d566b2a46aab370f07dce3.tar.gz mitmproxy-69e71097f7a9633a43d566b2a46aab370f07dce3.tar.bz2 mitmproxy-69e71097f7a9633a43d566b2a46aab370f07dce3.zip |
mark unused variables and arguments
Diffstat (limited to 'netlib/http_cookies.py')
-rw-r--r-- | netlib/http_cookies.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/netlib/http_cookies.py b/netlib/http_cookies.py index b7311714..e91ee5c0 100644 --- a/netlib/http_cookies.py +++ b/netlib/http_cookies.py @@ -87,7 +87,7 @@ def _read_value(s, start, delims): return _read_until(s, start, delims) -def _read_pairs(s, off=0, specials=()): +def _read_pairs(s, off=0): """ Read pairs of lhs=rhs values. @@ -151,10 +151,7 @@ def _parse_set_cookie_pairs(s): For Set-Cookie, we support multiple cookies as described in RFC2109. This function therefore returns a list of lists. """ - pairs, off = _read_pairs( - s, - specials=("expires", "path") - ) + pairs, off_ = _read_pairs(s) return pairs @@ -185,7 +182,7 @@ def parse_cookie_header(line): Parse a Cookie header value. Returns a (possibly empty) ODict object. """ - pairs, off = _read_pairs(line) + pairs, off_ = _read_pairs(line) return odict.ODict(pairs) |