Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1357471

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

1 file changed

+1-1Lines changed: 1 addition & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎bpython/autocomplete.py‎

Copy file name to clipboardExpand all lines: bpython/autocomplete.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.