def cinder_docstring_one_line(physical_line):
 pos = max([physical_line.find(i) for i in DOCSTRING_TRIPLE])
 end = max([(physical_line[(-4):(-1)] == i) for i in DOCSTRING_TRIPLE])
 if ((pos != (-1)) and end and (len(physical_line) > (pos + 4))):
  if ((physical_line[(-5)] != '.') and physical_line):
   return (pos, 'CINDER N402: one line docstring needs a period')

def cinder_docstring_one_line ( physical_line ) : pos = max ( [ physical_line . find ( i ) for i in DOCSTRING_TRIPLE ] ) end = max ( [ ( physical_line [ ( - 4 ) : ( - 1 ) ] == i ) for i in DOCSTRING_TRIPLE ] ) if ( ( pos != ( - 1 ) ) and end and ( len ( physical_line ) > ( pos + 4 ) ) ) : if ( ( physical_line [ ( - 5 ) ] != '.' ) and physical_line ) : return ( pos , 'CINDER N402: one line docstring needs a period' )
check one line docstring end .