Skip to content

Commit 620da4b

Browse files
committed
A temporary workaround for missing unicode
Somebody should take a better look at this. Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent f5a8e67 commit 620da4b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
23
import contextlib
34
import errno
45
import functools
@@ -50,9 +51,9 @@
5051

5152
#TODO other autocomplete modes (also fix in other bpython implementations)
5253

53-
5454
from curtsies.configfile_keynames import keymap as key_dispatch
5555

56+
5657
logger = logging.getLogger(__name__)
5758

5859
INCONSISTENT_HISTORY_MSG = u"#<---History inconsistent with output shown--->"
@@ -78,6 +79,10 @@
7879
Press {config.edit_config_key} to edit this config file.
7980
"""
8081

82+
if py3:
83+
unicode = str
84+
85+
8186
class FakeStdin(object):
8287
"""Stdin object user code references so sys.stdin.read() asked user for interactive input"""
8388
def __init__(self, coderunner, repl, configured_edit_keys=None):

0 commit comments

Comments
 (0)