changed _compatibility.utf8 -> 'u' and removed a lot of the issues with the now enforced unicode source input of the parser
This commit is contained in:
1 parent
5478e50f8b
commit
c5fcebde82
10 files changed
+41
-36
No files matched your search
@@ -90,11 +90,11 @@ except NameError:
|
||||
unicode = str
|
||||
|
||||
if is_py3:
|
||||
utf8 = lambda s: s
|
||||
u = lambda s: s
|
||||
else:
|
||||
utf8 = lambda s: s.decode('utf-8')
|
||||
u = lambda s: s.decode('utf-8')
|
||||
|
||||
utf8.__doc__ = """
|
||||
u.__doc__ = """
|
||||
Decode a raw string into unicode object. Do nothing in Python 3.
|
||||
"""
|
||||
|
||||
|
||||
Reference in new issue
Block a user