OSDN Git Service

Fix spelling: uncode -> unicode.
authorDavid L. Jones <dlj@google.com>
Thu, 29 Jun 2017 01:03:56 +0000 (01:03 +0000)
committerDavid L. Jones <dlj@google.com>
Thu, 29 Jun 2017 01:03:56 +0000 (01:03 +0000)
Remember kids: there is no 'I' in str or bytes, but there is ALWAYS an
'I' in unicode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306626 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/util.py

index a75bc8a..917dca8 100644 (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')