From b80091b56e4c131e9ac9db9b2fa78b13c516a32d Mon Sep 17 00:00:00 2001 From: Sophist Date: Mon, 24 Mar 2014 20:11:14 +0000 Subject: [PATCH] Use Universal Newline Support instead. --- test/test_bytes2human.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_bytes2human.py b/test/test_bytes2human.py index 558f88664..dfad7507d 100644 --- a/test/test_bytes2human.py +++ b/test/test_bytes2human.py @@ -83,7 +83,7 @@ class Testbytes2human(unittest.TestCase): f.close() def _read_expected_from(self, path): - with open(path, 'rb') as f: - lines = [l.rstrip("\n").rstrip("\r") for l in f.readlines()] + with open(path, 'rU') as f: + lines = [l.rstrip("\n") for l in f.readlines()] f.close() return lines