]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python/tests/source: remove useless local variable
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 11 Oct 2018 01:00:50 +0000 (14:00 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 1 Nov 2018 04:08:14 +0000 (05:08 +0100)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <noel.power@suse.com>
python/samba/tests/source.py

index 5a62dbf8a334332f0d37d2bca1478c1973a1bb64..4bb652c420443e7ae24d1d2c3f9ceecf13c06591 100644 (file)
@@ -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