dfxp: fix syntax
This commit is contained in:
parent
e6b0b86eb2
commit
8f057ac0bd
@ -1850,13 +1850,11 @@ def dfxp2srt(dfxp_data):
|
||||
'ttaf1': 'http://www.w3.org/2006/10/ttaf1',
|
||||
})
|
||||
|
||||
|
||||
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
|
||||
|
||||
|
||||
def parse_node(node):
|
||||
str_or_empty = functools.partial(str_or_none, default='')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user