Skip to content

Commit b878502

Browse files
switch to curtsies v2.2, fmtstrs unicode
1 parent 592d215 commit b878502

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bpython/curtsiesfrontend/replpainter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,14 @@ def formatted_argspec(argspec, columns, config):
108108
color = bolds[color]
109109

110110
if not py3:
111-
s += color(inspect.strseq(arg, str))
111+
s += color(inspect.strseq(arg, unicode))
112112
else:
113113
s += color(arg)
114114

115115
if kw is not None:
116116
s += punctuation_color('=')
117+
if not py3:
118+
kw = kw.decode('ascii', 'replace')
117119
s += token_color(kw)
118120

119121
if i != len(args) - 1:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def initialize_options(self):
210210
install_requires = [
211211
'pygments',
212212
'requests',
213-
'curtsies >=0.1.18, <0.2.0',
213+
'curtsies >=0.1.18',
214214
'greenlet',
215215
'six >=1.4'
216216
]

0 commit comments

Comments
 (0)