def nova_docstring_one_line(physical_line, previous_logical):
 line = physical_line.lstrip()
 if is_docstring(physical_line, previous_logical):
  pos = max([line.find(i) for i in START_DOCSTRING_TRIPLE])
  end = max([(line[(-4):(-1)] == i) for i in END_DOCSTRING_TRIPLE])
  if ((pos != (-1)) and end and (len(line) > (pos + 4))):
   if (line[(-5)] not in ['.', '?', '!']):
    return (pos, 'N402: one line docstring needs punctuation.')

def nova_docstring_one_line ( physical_line , previous_logical ) : line = physical_line . lstrip ( ) if is_docstring ( physical_line , previous_logical ) : pos = max ( [ line . find ( i ) for i in START_DOCSTRING_TRIPLE ] ) end = max ( [ ( line [ ( - 4 ) : ( - 1 ) ] == i ) for i in END_DOCSTRING_TRIPLE ] ) if ( ( pos != ( - 1 ) ) and end and ( len ( line ) > ( pos + 4 ) ) ) : if ( line [ ( - 5 ) ] not in [ '.' , '?' , '!' ] ) : return ( pos , 'N402: one line docstring needs punctuation.' )
check one line docstring end .