From b8cb0b3af0dd65bbc90106b66e50d0eb1dbd6315 Mon Sep 17 00:00:00 2001 From: "Jens H. Nielsen" Date: Sun, 10 Aug 2014 11:08:01 +0100 Subject: [PATCH] backend_qt5.py Don't use six.u This code already does from __future__ import unicode_literal. Thus '+' will be a unicode string even in python 2 and there is no need for converting it into a unicode string. Infact this results in a TypeError because six.u assumes the input string to be ASCII only. See http://pythonhosted.org/six/#six.u --- lib/matplotlib/backends/backend_qt5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/backends/backend_qt5.py b/lib/matplotlib/backends/backend_qt5.py index d05402764335..561da2223be5 100644 --- a/lib/matplotlib/backends/backend_qt5.py +++ b/lib/matplotlib/backends/backend_qt5.py @@ -381,7 +381,7 @@ def _get_key(self, event): key = key.lower() mods.reverse() - return six.u('+').join(mods + [key]) + return '+'.join(mods + [key]) def new_timer(self, *args, **kwargs): """