Clean up calls to .encode() / .decode()

This commit is contained in:
Anthony Sottile 2020-01-12 10:46:33 -08:00
parent b2faf339ce
commit aefbe71765
11 changed files with 17 additions and 18 deletions

View file

@ -23,7 +23,7 @@ def test_file_doesnt_exist():
def test_simple_case(tmpdir):
x = tmpdir.join('f')
x.write_text('#!/usr/bin/env echo', encoding='UTF-8')
x.write('#!/usr/bin/env echo')
make_executable(x.strpath)
assert parse_shebang.parse_filename(x.strpath) == ('echo',)