Permalink
Browse files

change comment and credit

  • Loading branch information...
Andy Chu
Andy Chu committed Jun 5, 2018
1 parent 413a27e commit 058352c333beb5072447f80e188293886140e1cf
Showing with 3 additions and 5 deletions.
  1. +3 −5 core/word_compile.py
View
@@ -32,11 +32,9 @@
def Utf8Encode(code):
"""
Args:
code: Unicode code point (integer)
Returns:
utf-8 encoded str
"""Return utf-8 encoded bytes from a unicode code point.
Based on https://stackoverflow.com/a/23502707
"""
if code <= 0x7F:
bytes_ = [code & 0x7F]

0 comments on commit 058352c

Please sign in to comment.