mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Silence warnings under -3 triggered by wsgiref.
This commit is contained in:
parent
b646757e01
commit
d250c8d666
4 changed files with 12 additions and 11 deletions
|
@ -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!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue