Unify the encoding to ascii

pull/24725/head
Lidi Zheng 4 years ago
parent 892e7bacb1
commit e191e98f37
  1. 2
      tools/run_tests/python_utils/port_server.py

@ -157,7 +157,7 @@ class Handler(BaseHTTPRequestHandler):
self.end_headers()
p = allocate_port(self)
self.log_message('allocated port %d' % p)
self.wfile.write(('%d' % p).encode('utf8'))
self.wfile.write(bytes('%d' % p, 'ascii'))
elif self.path[0:6] == '/drop/':
self.send_response(200)
self.send_header('Content-Type', 'text/plain')

Loading…
Cancel
Save