Rename util.u to util.compat_str
This commit is contained in:
parent
c116339ddb
commit
96731798db
3 changed files with 61 additions and 61 deletions
|
@ -27,9 +27,9 @@ std_headers = {
|
|||
}
|
||||
|
||||
try:
|
||||
u = unicode # Python 2
|
||||
compat_str = unicode # Python 2
|
||||
except NameError:
|
||||
u = str
|
||||
compat_str = str
|
||||
|
||||
def preferredencoding():
|
||||
"""Get preferred encoding.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue