From 8547303c6a1f411d30331aa97e88f1d2f70494bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dr=2E=20Kert=C3=A9sz=20Csaba-Zolt=C3=A1n?= Date: Fri, 30 Jan 2015 19:28:10 +0200 Subject: [PATCH] Added b prefix for string used in BaseHTTPRequestHandler wfile.write --- oauth2client/tools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oauth2client/tools.py b/oauth2client/tools.py index 235793b..20faa43 100644 --- a/oauth2client/tools.py +++ b/oauth2client/tools.py @@ -99,9 +99,9 @@ class ClientRedirectHandler(BaseHTTPServer.BaseHTTPRequestHandler): query = self.path.split('?', 1)[-1] query = dict(urllib.parse.parse_qsl(query)) self.server.query_params = query - self.wfile.write("Authentication Status") - self.wfile.write("

The authentication flow has completed.

") - self.wfile.write("") + self.wfile.write(b"Authentication Status") + self.wfile.write(b"

The authentication flow has completed.

") + self.wfile.write(b"") def log_message(self, format, *args): """Do not log messages to stdout while running as command line program."""