[eporner] Simplify and correct (#3629)
[youtube-dl] / youtube_dl / utils.py
index e07750434807a48d1f036b999503409b9a9cfa73..8a36e619ae7246da1f18a4d5fd6cee7b364b81b7 100644 (file)
@@ -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)