summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-01-27 09:45:14 -0500
committerBen Gamari <ben@smart-cactus.org>2020-02-14 10:16:37 -0500
commitc06df28dd490d0309e0b1885a6121b45f74edf3c (patch)
tree51b00da4610b7607c8b43c27673eb2669eb1a524
parent459f7c6e29eed46f8a5be8fac02c45450080a67c (diff)
downloadhaskell-c06df28dd490d0309e0b1885a6121b45f74edf3c.tar.gz
users-guide: Fix "invalid file" failure
I have no idea how this worked previously. Different Python version?
-rwxr-xr-xdocs/users_guide/compare-flags.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/users_guide/compare-flags.py b/docs/users_guide/compare-flags.py
index f47e819adb..bfb8da65cf 100755
--- a/docs/users_guide/compare-flags.py
+++ b/docs/users_guide/compare-flags.py
@@ -17,7 +17,7 @@ EXPECTED_UNDOCUMENTED_PATH = \
Path(__file__).parent / 'expected-undocumented-flags.txt'
EXPECTED_UNDOCUMENTED = \
- {line for line in open(EXPECTED_UNDOCUMENTED_PATH).read().split()}
+ {line for line in EXPECTED_UNDOCUMENTED_PATH.read_text().split()}
def expected_undocumented(flag: str) -> bool:
if flag in EXPECTED_UNDOCUMENTED: