mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-06-30 11:02:51 -05:00
[eporner] Simplify and correct (#3629)
This commit is contained in:
@ -1318,6 +1318,7 @@ def str_or_none(v, default=None):
|
||||
|
||||
|
||||
def str_to_int(int_str):
|
||||
""" A more relaxed version of int_or_none """
|
||||
if int_str is None:
|
||||
return None
|
||||
int_str = re.sub(r'[,\.]', u'', int_str)
|
||||
|
Reference in New Issue
Block a user