aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-08-31 23:51:36 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-08-31 23:56:14 +0200
commit48d4681efcb02455722e15b0183bd42ab50dc748 (patch)
treef69d6961f89c64466e88133321e49186ab1922c2 /youtube_dl/utils.py
parent04b4aa4a7b5f3257923640fbba4f90efb2a195fc (diff)
[eporner] Simplify and correct (#3629)
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py1
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)