Skip to content

Commit d8aaad8

Browse files
committed
Use unicode literals
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 1357471 commit d8aaad8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bpython/autocomplete.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# coding: utf-8
2+
13
# The MIT License
24
#
35
# Copyright (c) 2009-2015 the bpython authors.
@@ -21,6 +23,8 @@
2123
# THE SOFTWARE.
2224
#
2325

26+
from __future__ import unicode_literals
27+
2428
import __main__
2529
import abc
2630
import keyword
@@ -45,7 +49,7 @@
4549

4650
ALL_MODES = (SIMPLE, SUBSTRING, FUZZY)
4751

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

0 commit comments

Comments
 (0)