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
[utils] Correct decoding of large unicode codepoints in uppercase_escape (
Fixes
#2664
)
totalwebcasting
Philipp Hagemeister
11 years ago
parent
c8fc3fb524
commit
a612753db9
1 changed files
with
2 additions
and
2 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
youtube_dl/utils.py
+ 2
- 2
youtube_dl/utils.py
View File
@ -1264,8 +1264,8 @@ class PagedList(object):
def
uppercase_escape
(
s
)
:
def
uppercase_escape
(
s
)
:
return
re
.
sub
(
return
re
.
sub
(
r
'
\\
U
(
[0-9a-fA-F]{8}
)
'
,
lambda
m
:
compat_chr
(
int
(
m
.
group
(
1
)
,
base
=
16
)
)
,
s
)
r
'
\\
U[0-9a-fA-F]{8}
'
,
lambda
m
:
m
.
group
(
0
)
.
decode
(
'
unicode-escape
'
)
,
s
)
try
:
try
:
struct
.
pack
(
u
'
!I
'
,
0
)
struct
.
pack
(
u
'
!I
'
,
0
)
Write
Preview
Loading…
Cancel
Save