Commit 149e2a3a authored by Ben Gamari's avatar Ben Gamari 🐢

compare-flags: Don't rely on encoding flag of subprocess.check_output

Apparently it isn't supported by some slightly older Python versions.
parent fe02f781
......@@ -48,10 +48,9 @@ def read_documented_flags(doc_flags) -> Set[str]:
if line != ''}
def read_ghc_flags(ghc_path: str) -> Set[str]:
ghc_output = subprocess.check_output([ghc_path, '--show-options'],
ghc_output = subprocess.check_output([ghc_path, '--show-options'])
return {flag
for flag in ghc_output.split('\n')
for flag in ghc_output.decode('UTF-8').split('\n')
if not expected_undocumented(flag)
if flag != ''}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment