From a204102c634743faac8af345ad8bfec6317e7024 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Sat, 25 Jan 2020 08:39:56 -0500 Subject: docs/compare-flags: Don't use python f-strings --- docs/users_guide/compare-flags.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/users_guide') 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 -- cgit v1.2.1