This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
youtube-dl
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
1.1k
Wiki
Activity
Browse Source
[compat] Simplify kwarg detection code
This enables nuitka to compile youtube-dl.
totalwebcasting
Philipp Hagemeister
10 years ago
parent
f8780e6d11
commit
c6973bd412
1 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
youtube_dl/compat.py
+ 3
- 1
youtube_dl/compat.py
View File
@ -297,7 +297,9 @@ else:
# Old 2.6 and 2.7 releases require kwargs to be bytes
try
:
(
lambda
x
:
x
)
(
*
*
{
'
x
'
:
0
}
)
def
_testfunc
(
x
)
:
pass
_testfunc
(
*
*
{
'
x
'
:
0
}
)
except
TypeError
:
def
compat_kwargs
(
kwargs
)
:
return
dict
(
(
bytes
(
k
)
,
v
)
for
k
,
v
in
kwargs
.
items
(
)
)
Write
Preview
Loading…
Cancel
Save