Skip to content

Commit

Permalink
input fix TypeError: can only concatenate str (not "bytes") to str
Browse files Browse the repository at this point in the history
  • Loading branch information
Captain committed Aug 9, 2020
1 parent 16a23d2 commit a3ba939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/Components/Input.py
Expand Up @@ -157,7 +157,7 @@ def end(self):
self.update()

def insertChar(self, ch, pos=False, owr=False, ins=False):
if isinstance(ch, str):
if isinstance(ch, bytes):
ch = six.ensure_text(ch, errors='ignore')
if not pos:
pos = self.currPos
Expand Down

0 comments on commit a3ba939

Please sign in to comment.