We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7fdde5 commit cd2ba2fCopy full SHA for cd2ba2f
nibabel/tests/test_openers.py
@@ -341,10 +341,10 @@ def test_iter():
341
for input, does_t in files_to_test:
342
with Opener(input, 'wb') as fobj:
343
for line in lines:
344
- fobj.write(bytes(line + os.linesep, 'ascii'))
+ fobj.write(str.encode(line + os.linesep))
345
with Opener(input, 'rb') as fobj:
346
for back_line, line in zip(fobj, lines):
347
- assert back_line.decode('latin-1').rstrip() == line
+ assert back_line.decode().rstrip() == line
348
if not does_t:
349
continue
350
with Opener(input, 'rt') as fobj:
0 commit comments