mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-25 19:04:09 +00:00
Use Universal Newline Support instead.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user