Skip to content

Commit 8cad13e

Browse files
committed
hacky implementation for unicode_escape_encode
1 parent 15fa584 commit 8cad13e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/lib-graalpython/_codecs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def utf_32_ex_decode(data, errors=None, byteorder=0, final=False):
247247

248248
@__builtin__
249249
def unicode_escape_encode(string, errors=None):
250-
raise NotImplementedError("unicode_escape_encode")
250+
return __truffle_encode(repr(string)[1:-1], "latin-1", errors)
251251

252252

253253
@__builtin__

0 commit comments

Comments
 (0)