From e37edb7639b7b7ddec0cbed9d0f1b235b22f2eed Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Thu, 11 Oct 2018 14:00:50 +1300 Subject: [PATCH] python/tests/source: remove useless local variable Signed-off-by: Douglas Bagnall Reviewed-by: Noel Power --- python/samba/tests/source.py | 1 - 1 file changed, 1 deletion(-) diff --git a/python/samba/tests/source.py b/python/samba/tests/source.py index 5a62dbf8a33..4bb652c4204 100644 --- a/python/samba/tests/source.py +++ b/python/samba/tests/source.py @@ -158,7 +158,6 @@ class TestSource(TestCase): def _iter_source_files_lines(self): for fname, text in get_source_file_contents(): lines = text.splitlines(True) - last_line_no = len(lines) - 1 for line_no, line in enumerate(lines): yield fname, line_no, line