From: Douglas Bagnall Date: Thu, 11 Oct 2018 01:00:50 +0000 (+1300) Subject: python/tests/source: remove useless local variable X-Git-Tag: tdb-1.3.17~1003 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e37edb7639b7b7ddec0cbed9d0f1b235b22f2eed;p=thirdparty%2Fsamba.git python/tests/source: remove useless local variable Signed-off-by: Douglas Bagnall Reviewed-by: Noel Power --- 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