From e6b0b86eb2101a6db945febb25c20bc895a76d4d Mon Sep 17 00:00:00 2001 From: fnord Date: Wed, 15 Jul 2015 05:59:33 -0500 Subject: [PATCH] explain purpose of text_or_none --- youtube_dl/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 485408baa..5a9c1ea3a 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -1852,6 +1852,7 @@ def dfxp2srt(dfxp_data): def text_or_empty(v): + """ return string that contains something other than whitespace, or '' """ str = str_or_none(v, '') return '' if not re.search(r'[^\s]',str,re.DOTALL) else str