diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2010-02-23 06:00:04 (GMT) |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2010-02-23 06:00:04 (GMT) |
commit | 8e615ae3bb6589993316fe960cdf6d710ad5aa66 (patch) | |
tree | c528f8c9816e8e4ca02a424665ab1077c7acade7 /Lib/wsgiref/headers.py | |
parent | c339978b1bbce8f3003f25e79ba0dc2f16c319cb (diff) | |
download | cpython-8e615ae3bb6589993316fe960cdf6d710ad5aa66.zip cpython-8e615ae3bb6589993316fe960cdf6d710ad5aa66.tar.gz cpython-8e615ae3bb6589993316fe960cdf6d710ad5aa66.tar.bz2 |
Merged revisions 78367 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78367 | tarek.ziade | 2010-02-23 00:53:05 -0500 (Tue, 23 Feb 2010) | 1 line
fixed #5801: removed spurious empty lines in wsgiref
........
Diffstat (limited to 'Lib/wsgiref/headers.py')
-rw-r--r-- | Lib/wsgiref/headers.py | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/Lib/wsgiref/headers.py b/Lib/wsgiref/headers.py index d316d30..cc01f5f 100644 --- a/Lib/wsgiref/headers.py +++ b/Lib/wsgiref/headers.py @@ -25,18 +25,6 @@ def _formatparam(param, value=None, quote=1): return param - - - - - - - - - - - - class Headers: """Manage a collection of HTTP response headers""" @@ -87,10 +75,6 @@ class Headers: """ return self.get(name) - - - - def __contains__(self, name): """Return true if the message contains the header.""" return self.get(name) is not None @@ -127,9 +111,6 @@ class Headers: """ return [k for k, v in self._headers] - - - def values(self): """Return a list of all header values. @@ -171,7 +152,6 @@ class Headers: else: return result - def add_header(self, _name, _value, **_params): """Extended header setting. @@ -200,19 +180,3 @@ class Headers: v = self._convert_string_type(v) parts.append(_formatparam(k.replace('_', '-'), v)) self._headers.append((self._convert_string_type(_name), "; ".join(parts))) - - - - - - - - - - - - - - - -# |