Skip to content

Commit bba6224

Browse files
Address review comments
1 parent 7bf6445 commit bba6224

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

Lib/http/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def _read_status(self):
269269
if len(line) > _MAXLINE:
270270
raise LineTooLong("status line")
271271
if self.debuglevel > 0:
272-
_log.info("reply: {}".format(repr(line)))
272+
_log.info("reply: %s" % repr(line))
273273
if not line:
274274
# Presumably, the server closed the connection before
275275
# sending a valid response.
@@ -318,7 +318,7 @@ def begin(self):
318318
break
319319

320320
if self.debuglevel > 0:
321-
_log.info("header: {}".format(skip))
321+
_log.info("header: %s" % skip)
322322

323323
self.code = self.status = status
324324
self.reason = reason.strip()
@@ -932,7 +932,7 @@ def _tunnel(self):
932932
break
933933

934934
if self.debuglevel > 0:
935-
_log.info('header: {}'.format(line.decode()))
935+
_log.info('header: %s' % line.decode())
936936

937937
def connect(self):
938938
"""Connect to the host and port specified in __init__."""

Lib/test/test_httplib.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import io
44
import itertools
55
import os
6-
import sys
76
import logging
87
import array
98
import re

Lib/test/test_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1955,7 +1955,7 @@ def handle_request(self, request):
19551955

19561956
def test_output(self):
19571957
# The log message sent to the HTTPHandler is properly received.
1958-
logger = logging.getLogger("httplogger")
1958+
logger = logging.getLogger("http")
19591959
for secure in (False, True):
19601960
addr = ('localhost', 0)
19611961
if secure:

0 commit comments

Comments
 (0)