Skip to content

Commit 1357471

Browse files
committed
Make magic methods unicode (fixes #488)
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent bf09b5e commit 1357471

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
@@ -45,7 +45,7 @@
4545

4646
ALL_MODES = (SIMPLE, SUBSTRING, FUZZY)
4747

48-
MAGIC_METHODS = tuple("__%s__" % s for s in (
48+
MAGIC_METHODS = tuple(u"__%s__" % s for s in (
4949
"init", "repr", "str", "lt", "le", "eq", "ne", "gt", "ge", "cmp", "hash",
5050
"nonzero", "unicode", "getattr", "setattr", "get", "set", "call", "len",
5151
"getitem", "setitem", "iter", "reversed", "contains", "add", "sub", "mul",

0 commit comments

Comments
 (0)