Fix spelling: uncode -> unicode.

Remember kids: there is no 'I' in str or bytes, but there is ALWAYS an
'I' in unicode.

llvm-svn: 306626
This commit is contained in:
David L. Jones 2017-06-29 01:03:56 +00:00
parent d59c9cd539
commit 30251947ed
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ def to_string(b):
# - 'bytes' (2nd branch above)
#
# The last type we might expect is the Python2 'unicode' type. There is no
# 'uncode' type in Python3 (all the Python3 cases were already handled). In
# 'unicode' type in Python3 (all the Python3 cases were already handled). In
# order to get a 'str' object, we need to encode the 'unicode' object.
try:
return b.encode('utf-8')