mirror of
https://github.com/python/cpython.git
synced 2025-07-22 18:55:22 +00:00
Rip out 'long' and 'L'-suffixed integer literals.
(Rough first cut.)
This commit is contained in:
parent
fc7bb8c786
commit
e2a383d062
146 changed files with 1446 additions and 1477 deletions
|
@ -331,12 +331,12 @@ class BaseHTTPRequestHandler(SocketServer.StreamRequestHandler):
|
|||
"""
|
||||
|
||||
try:
|
||||
short, long = self.responses[code]
|
||||
shortmsg, longmsg = self.responses[code]
|
||||
except KeyError:
|
||||
short, long = '???', '???'
|
||||
shortmsg, longmsg = '???', '???'
|
||||
if message is None:
|
||||
message = short
|
||||
explain = long
|
||||
message = shortmsg
|
||||
explain = longmsg
|
||||
self.log_error("code %d, message %s", code, message)
|
||||
# using _quote_html to prevent Cross Site Scripting attacks (see bug #1100201)
|
||||
content = (self.error_message_format %
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue