def nova_no_cr(physical_line):
 pos = physical_line.find('\r')
 if ((pos != (-1)) and (pos == (len(physical_line) - 2))):
  return (pos, 'N901: Windows style line endings not allowed in code')

def nova_no_cr ( physical_line ) : pos = physical_line . find ( '\r' ) if ( ( pos != ( - 1 ) ) and ( pos == ( len ( physical_line ) - 2 ) ) ) : return ( pos , 'N901: Windows style line endings not allowed in code' )
check that we only use newlines not carriage returns .