Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b8cb0b3

Browse files
committed
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
1 parent 59ff34d commit b8cb0b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_qt5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def _get_key(self, event):
381381
key = key.lower()
382382

383383
mods.reverse()
384-
return six.u('+').join(mods + [key])
384+
return '+'.join(mods + [key])
385385

386386
def new_timer(self, *args, **kwargs):
387387
"""

0 commit comments

Comments
 (0)