def missing_newline(physical_line):
 if (physical_line.rstrip() == physical_line):
  return (len(physical_line), 'W292 no newline at end of file')

def missing_newline ( physical_line ) : if ( physical_line . rstrip ( ) == physical_line ) : return ( len ( physical_line ) , 'W292 no newline at end of file' )
jcr: the last line should have a newline .