diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-08-31 23:51:36 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-08-31 23:56:14 +0200 |
commit | 48d4681efcb02455722e15b0183bd42ab50dc748 (patch) | |
tree | f69d6961f89c64466e88133321e49186ab1922c2 /youtube_dl/utils.py | |
parent | 04b4aa4a7b5f3257923640fbba4f90efb2a195fc (diff) |
[eporner] Simplify and correct (#3629)
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index e07750434..8a36e619a 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -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) |