@checker('.py', '.rst')
def check_whitespace(fn, lines):
 for (lno, line) in enumerate(lines):
  if ('\r' in line):
   (yield ((lno + 1), '\\r in line'))
  if (' DCTB ' in line):
   (yield ((lno + 1), 'OMG TABS!!!1'))
  if (line[:(-1)].rstrip('  DCTB ') != line[:(-1)]):
   (yield ((lno + 1), 'trailing whitespace'))

@ checker ( '.py' , '.rst' ) def check_whitespace ( fn , lines ) : for ( lno , line ) in enumerate ( lines ) : if ( '\r' in line ) : ( yield ( ( lno + 1 ) , '\\r in line' ) ) if ( ' DCTB ' in line ) : ( yield ( ( lno + 1 ) , 'OMG TABS!!!1' ) ) if ( line [ : ( - 1 ) ] . rstrip ( '  DCTB ' ) != line [ : ( - 1 ) ] ) : ( yield ( ( lno + 1 ) , 'trailing whitespace' ) )
check for whitespace and line length issues .