diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-08-04 21:30:53 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-08-04 21:30:53 (GMT) |
commit | d250c8d666a53c14aee59e4c5e454a2fbb514ae5 (patch) | |
tree | f5dc0a3506a33730a29a5b2b39cf2da1ed6a6f2e /Lib/wsgiref/handlers.py | |
parent | b646757e01d51c242eef2f9802f1ca6836a5804a (diff) | |
download | cpython-d250c8d666a53c14aee59e4c5e454a2fbb514ae5.zip cpython-d250c8d666a53c14aee59e4c5e454a2fbb514ae5.tar.gz cpython-d250c8d666a53c14aee59e4c5e454a2fbb514ae5.tar.bz2 |
Silence warnings under -3 triggered by wsgiref.
Diffstat (limited to 'Lib/wsgiref/handlers.py')
-rw-r--r-- | Lib/wsgiref/handlers.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Lib/wsgiref/handlers.py b/Lib/wsgiref/handlers.py index 099371b..173e34c 100644 --- a/Lib/wsgiref/handlers.py +++ b/Lib/wsgiref/handlers.py @@ -17,12 +17,13 @@ except NameError: d[k] = v return d -try: - True - False -except NameError: - True = not None - False = not True +# Uncomment for 2.2 compatibility. +#try: +# True +# False +#except NameError: +# True = not None +# False = not True # Weekday and month names for HTTP date/time formatting; always English! |