diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-08-04 21:30:53 +0000 |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-08-04 21:30:53 +0000 |
commit | e602ffb7dcd019a2aaf2e1f24ceae65271a1232c (patch) | |
tree | 58edd6b3301771ba07ef742cecff0cd3f139262c /Lib/wsgiref/handlers.py | |
parent | a26af3786ec67032901eb63643c08d9c8fc305b9 (diff) | |
download | cpython-e602ffb7dcd019a2aaf2e1f24ceae65271a1232c.tar.gz |
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 099371b079..173e34c136 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! |