Silence warnings under -3 triggered by wsgiref.

This commit is contained in:
Brett Cannon 2008-08-04 21:30:53 +00:00
parent b646757e01
commit d250c8d666
4 changed files with 12 additions and 11 deletions

View file

@ -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!