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] Add None check in str_to_int
totalwebcasting
Sergey M․
10 years ago
parent
61bbddbaa6
commit
c45a6caa95
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
youtube_dl/utils.py
+ 2
- 0
youtube_dl/utils.py
View File
@ -1194,6 +1194,8 @@ def format_bytes(bytes):
def
str_to_int
(
int_str
)
:
if
int_str
is
None
:
return
None
int_str
=
re
.
sub
(
r
'
[,
\
.]
'
,
u
'
'
,
int_str
)
return
int
(
int_str
)
Write
Preview
Loading…
Cancel
Save