forked from OSchip/llvm-project
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:
parent
d59c9cd539
commit
30251947ed
|
@ -48,7 +48,7 @@ def to_string(b):
|
||||||
# - 'bytes' (2nd branch above)
|
# - 'bytes' (2nd branch above)
|
||||||
#
|
#
|
||||||
# The last type we might expect is the Python2 'unicode' type. There is no
|
# 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.
|
# order to get a 'str' object, we need to encode the 'unicode' object.
|
||||||
try:
|
try:
|
||||||
return b.encode('utf-8')
|
return b.encode('utf-8')
|
||||||
|
|
Loading…
Reference in New Issue