mirror of
https://github.com/chubin/cheat.sh.git
synced 2026-06-20 13:16:44 +02:00
utf-8 workaround for python 2.x
This commit is contained in:
@@ -19,7 +19,7 @@ def _answer_add_comments(answer, request_options=None):
|
||||
filetype = filetype[2:]
|
||||
|
||||
answer['answer'] = fmt.comments.beautify(
|
||||
answer['answer'].encode('utf-8'), filetype, request_options)
|
||||
answer['answer'], filetype, request_options)
|
||||
answer['format'] = 'code'
|
||||
return answer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user