Skip to content

Commit d067b9d

Browse files
committed
Decode matches from jedi (fixes bpython#687)
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 9ec89db commit d067b9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/autocomplete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ def matches(self, cursor_offset, line, **kwargs):
519519

520520
first_letter = line[self._orig_start:self._orig_start + 1]
521521

522-
matches = [c.name for c in completions]
522+
matches = [try_decode(c.name, 'ascii') for c in completions]
523523
if any(not m.lower().startswith(matches[0][0].lower())
524524
for m in matches):
525525
# Too general - giving completions starting with multiple

0 commit comments

Comments
 (0)