summaryrefslogtreecommitdiffstats
path: root/Lib/wsgiref/util.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-08-04 21:30:53 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-08-04 21:30:53 (GMT)
commitd250c8d666a53c14aee59e4c5e454a2fbb514ae5 (patch)
treef5dc0a3506a33730a29a5b2b39cf2da1ed6a6f2e /Lib/wsgiref/util.py
parentb646757e01d51c242eef2f9802f1ca6836a5804a (diff)
downloadcpython-d250c8d666a53c14aee59e4c5e454a2fbb514ae5.zip
cpython-d250c8d666a53c14aee59e4c5e454a2fbb514ae5.tar.gz
cpython-d250c8d666a53c14aee59e4c5e454a2fbb514ae5.tar.bz2
Silence warnings under -3 triggered by wsgiref.
Diffstat (limited to 'Lib/wsgiref/util.py')
-rw-r--r--Lib/wsgiref/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/wsgiref/util.py b/Lib/wsgiref/util.py
index 9009b87..450a32f 100644
--- a/Lib/wsgiref/util.py
+++ b/Lib/wsgiref/util.py
@@ -98,7 +98,7 @@ def shift_path_info(environ):
return None
path_parts = path_info.split('/')
- path_parts[1:-1] = [p for p in path_parts[1:-1] if p and p<>'.']
+ path_parts[1:-1] = [p for p in path_parts[1:-1] if p and p != '.']
name = path_parts[1]
del path_parts[1]
@@ -166,7 +166,7 @@ _hoppish = {
'connection':1, 'keep-alive':1, 'proxy-authenticate':1,
'proxy-authorization':1, 'te':1, 'trailers':1, 'transfer-encoding':1,
'upgrade':1
-}.has_key
+}.__contains__
def is_hop_by_hop(header_name):
"""Return true if 'header_name' is an HTTP/1.1 "Hop-by-Hop" header"""