projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[cinchcast] Add new extractor (Fixes #4428)
[youtube-dl]
/
youtube_dl
/
compat.py
diff --git
a/youtube_dl/compat.py
b/youtube_dl/compat.py
index 2983501aeb44feecf1bd335d5782f455a52f4edb..f4a85443eda5086c004040183d1779a7059c0c2e 100644
(file)
--- a/
youtube_dl/compat.py
+++ b/
youtube_dl/compat.py
@@
-247,7
+247,7
@@
else:
userhome = compat_getenv('HOME')
elif 'USERPROFILE' in os.environ:
userhome = compat_getenv('USERPROFILE')
userhome = compat_getenv('HOME')
elif 'USERPROFILE' in os.environ:
userhome = compat_getenv('USERPROFILE')
- elif
not 'HOMEPATH'
in os.environ:
+ elif
'HOMEPATH' not
in os.environ:
return path
else:
try:
return path
else:
try:
@@
-270,7
+270,7
@@
if sys.version_info < (3, 0):
print(s.encode(preferredencoding(), 'xmlcharrefreplace'))
else:
def compat_print(s):
print(s.encode(preferredencoding(), 'xmlcharrefreplace'))
else:
def compat_print(s):
- assert
type(s) == type(u''
)
+ assert
isinstance(s, compat_str
)
print(s)
print(s)