changeset 2291:c5d01f74189a

test_sourcecode: use binary mode, so we can detect CRLF line ends on win32 platform, too
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 07 Jul 2007 17:22:50 +0200
parents 49188b1e803c
children 953a0e4e3dac 338334a0d38d
files MoinMoin/_tests/pep8.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/pep8.py	Tue Jul 03 08:58:33 2007 +0200
+++ b/MoinMoin/_tests/pep8.py	Sat Jul 07 17:22:50 2007 +0200
@@ -507,7 +507,7 @@
 
     def __init__(self, filename):
         self.filename = filename
-        self.lines = file(filename).readlines()
+        self.lines = file(filename, 'rb').readlines()
         self.physical_checks = find_checks('physical_line')
         self.logical_checks = find_checks('logical_line')
         options.counters['physical lines'] = \