diff options
author | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2017-03-12 00:12:26 +0200 |
---|---|---|
committer | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2017-03-12 00:12:26 +0200 |
commit | 19f1de096ea2ae9ed5d4a4b556502fb569d65bc0 (patch) | |
tree | d34a185395386049e6125c988ab5a88ec8e25a13 /cherrypy/lib/cptools.py | |
parent | 7075e15b1ba006d11c29415289f22dea97f8b464 (diff) | |
download | cherrypy-git-19f1de096ea2ae9ed5d4a4b556502fb569d65bc0.tar.gz |
Partially revert "PEP8fy codebase: eliminated W601 flake8 error"
This partially reverts commit 32073335657deacb0b20e0b1521dbba811e4f6b0.
Diffstat (limited to 'cherrypy/lib/cptools.py')
-rw-r--r-- | cherrypy/lib/cptools.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cherrypy/lib/cptools.py b/cherrypy/lib/cptools.py index e3125d44..2ad5a44d 100644 --- a/cherrypy/lib/cptools.py +++ b/cherrypy/lib/cptools.py @@ -601,11 +601,11 @@ class MonitoredHeaderMap(_httputil.HeaderMap): self.accessed_headers.add(key) return _httputil.HeaderMap.get(self, key, default=default) - if hasattr(_httputil.HeaderMap, 'has_key'): + if hasattr({}, 'has_key'): # Python 2 def has_key(self, key): self.accessed_headers.add(key) - return self.has_key(key) # noqa: W601 + return _httputil.HeaderMap.has_key(self, key) # noqa: W601 def autovary(ignore=None, debug=False): |