mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-07-01 03:22:50 -05:00
Rename util.u to util.compat_str
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user