INNER CODE UNIT · Python
skip_space_line
idealo/image-quality-assessment · mkdocs/autogen.py:51
def skip_space_line(parts, ind):
while ind < len(parts):
if re.match(r'^\s*$', parts[ind]):
ind += 1
else:
break
return ind
# check if comment is None or len(comment) == 0 return {}
def parse_func_string(comment):
if comment is None or len(comment) == 0:
return {}
comments = {}
paras = ('Args', 'Attributes', 'Returns', 'Raises')
comment_parts = [
'short_description',
'long_description',