Skip to content

Commit e0719d5

Browse files
committed
python-jsonschema#708 - satisfy Python2 unicode tests - attempt 1
1 parent bff4f00 commit e0719d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jsonschema/cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ def _json_formatter(cls, x):
7777
return json.dumps(x, separators=(',\n', ': '), sort_keys=True)
7878

7979
def _simple_msg(self, path, type, header=False):
80-
begin_end_chars = '╒╕' if header is True else '══'
81-
return '{}══[{}]═══({})'.format(begin_end_chars[0], type, path) \
82-
.ljust(self._WIDTH - 1, '═') + begin_end_chars[1]
80+
begin_end_chars = u'╒╕' if header is True else u'══'
81+
return u'{}══[{}]═══({})'.format(begin_end_chars[0], type, path) \
82+
.ljust(self._WIDTH - 1, u'═') + begin_end_chars[1]
8383

8484
def _error_msg(self, path, type, body):
8585
HEADER = self._simple_msg(path, type, header=True)
86-
FOOTER = '└' + '─' * (self._WIDTH - 2) + '┘'
86+
FOOTER = u'└' + u'─' * (self._WIDTH - 2) + u'┘'
8787

8888
return '\n'.join((HEADER, str(body), FOOTER, '\n'))
8989

0 commit comments

Comments
 (0)