diff options
author | Alex Waygood <Alex.Waygood@Gmail.com> | 2023-08-09 10:24:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-09 10:24:05 (GMT) |
commit | 65ce3652fa47a34acf715ee07bf0a2fae2e0da51 (patch) | |
tree | 242bf378684d112a0b5feec3870fdf38ea89625b /Tools | |
parent | 52fbcf61b5a70993c2d32332ff0ad9f369d968d3 (diff) | |
download | cpython-65ce3652fa47a34acf715ee07bf0a2fae2e0da51.zip cpython-65ce3652fa47a34acf715ee07bf0a2fae2e0da51.tar.gz cpython-65ce3652fa47a34acf715ee07bf0a2fae2e0da51.tar.bz2 |
gh-104683: Remove unused variables from `Tools/clinic` and tests for `Tools/clinic` (#107771)
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/clinic/cpp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/clinic/cpp.py b/Tools/clinic/cpp.py index 3d9c61a..16eee6f 100644 --- a/Tools/clinic/cpp.py +++ b/Tools/clinic/cpp.py @@ -186,7 +186,7 @@ def _main(filenames: list[str] | None = None) -> None: cpp = Monitor(filename, verbose=True) print() print(filename) - for line_number, line in enumerate(f.read().split('\n'), 1): + for line in f: cpp.writeline(line) |