diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-01-25 08:39:56 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2020-02-14 10:16:37 -0500 |
commit | a204102c634743faac8af345ad8bfec6317e7024 (patch) | |
tree | 75446aea22bf6b214ce80149abd5ddba3a0ee861 /docs | |
parent | f7f7a556f9b89303da4e1c3475e618653d830cc4 (diff) | |
download | haskell-a204102c634743faac8af345ad8bfec6317e7024.tar.gz |
docs/compare-flags: Don't use python f-strings
Diffstat (limited to 'docs')
-rwxr-xr-x | docs/users_guide/compare-flags.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/users_guide/compare-flags.py b/docs/users_guide/compare-flags.py index 086746e64a..f47e819adb 100755 --- a/docs/users_guide/compare-flags.py +++ b/docs/users_guide/compare-flags.py @@ -71,15 +71,15 @@ def main() -> None: undocumented = ghc_flags - doc_flags if len(undocumented) > 0: - print(f'Found {len(undocumented)} flags not documented in the users guide:') - print('\n'.join(f' {flag}' for flag in sorted(undocumented))) + print('Found {len_undoc} flags not documented in the users guide:') + print('\n'.join(' {}'.format(flag) for flag in sorted(undocumented))) print() failed = True now_documented = EXPECTED_UNDOCUMENTED.intersection(doc_flags) if len(now_documented) > 0: - print(f'Found flags that are documented yet listed in {EXPECTED_UNDOCUMENTED_PATH}:') - print('\n'.join(f' {flag}' for flag in sorted(now_documented))) + print('Found flags that are documented yet listed in {}:'.format(EXPECTED_UNDOCUMENTED_PATH)) + print('\n'.join(' {}'.format(flag) for flag in sorted(now_documented))) print() failed = True |