Skip to content

Commit b7ea6ae

Browse files
authored
Escape single quote
1 parent 0d50065 commit b7ea6ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/http/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ def _wrap_ipv6(self, ip):
977977

978978
def _tunnel(self):
979979
if _contains_disallowed_url_pchar_re.search(self._tunnel_host):
980-
raise ValueError('Tunnel host can't contain control characters %r'
980+
raise ValueError('Tunnel host can\'t contain control characters %r'
981981
% (self._tunnel_host,))
982982
connect = b"CONNECT %s:%d %s\r\n" % (
983983
self._wrap_ipv6(self._tunnel_host.encode("idna")),

0 commit comments

Comments
 (0)