From e96d4413076cc53d4431b4747dc9e3859c25fa83 Mon Sep 17 00:00:00 2001 From: Bill Dengler Date: Wed, 21 Jun 2017 20:25:09 +0000 Subject: [PATCH] Fix authorization handler. --- src/twitter/authorisationHandler.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/twitter/authorisationHandler.py b/src/twitter/authorisationHandler.py index 3c71be4c..27a44f18 100644 --- a/src/twitter/authorisationHandler.py +++ b/src/twitter/authorisationHandler.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -from future import standard_library -standard_library.install_aliases() import http.server import application from urllib.parse import urlparse, parse_qs @@ -19,5 +17,5 @@ class handler(http.server.BaseHTTPRequestHandler): params = parse_qs(urlparse(self.path).query) global verifier verifier = params.get('oauth_verifier', [None])[0] - self.wfile.write("You have successfully logged into Twitter with {0}. You can close this window now.".format(application.name)) + self.wfile.write(bytes(_("You have successfully logged into Twitter with {0}. You can close this window now.".format(application.name)),"utf-8")) self.finish()