finish removing six

This commit is contained in:
Alexandre Detiste
2024-03-22 08:15:00 +01:00
committed by Scott Talbert
parent 323e78c085
commit 66a9320917
8 changed files with 18 additions and 21 deletions

View File

@@ -2,7 +2,6 @@
import wx
import wx.lib.mixins.listctrl as listmix
from six import unichr
#----------------------------------------------------------------------
@@ -265,15 +264,15 @@ class KeyLog(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin):
if keycode == 0:
keyname = "NUL"
elif keycode < 27:
keyname = u"Ctrl-%s" % unichr(ord('A') + keycode-1)
keyname = u"Ctrl-%s" % chr(ord('A') + keycode-1)
else:
keyname = u"\"%s\"" % unichr(keycode)
keyname = u"\"%s\"" % chr(keycode)
else:
keyname = u"(%s)" % keycode
UniChr = ''
if "unicode" in wx.PlatformInfo:
UniChr = "\"" + unichr(evt.GetUnicodeKey()) + "\""
UniChr = "\"" + chr(evt.GetUnicodeKey()) + "\""
modifiers = ""
for mod, ch in [(evt.ControlDown(), 'C'),