Source

pygments-main / tests / test_examplefiles.py

Diff from to

tests/test_examplefiles.py

 
 def check_lexer(lx, absfn):
     text = open(absfn, 'rb').read()
+    text = text.replace(b('\r\n'), b('\n'))
     text = text.strip(b('\n')) + b('\n')
     try:
         text = text.decode('utf-8')