From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 430BB10E079 for ; Fri, 10 Mar 2023 19:41:43 +0000 (UTC) From: =?UTF-8?q?Zbigniew=20Kempczy=C5=84ski?= To: igt-dev@lists.freedesktop.org Date: Fri, 10 Mar 2023 20:41:07 +0100 Message-Id: <20230310194125.14781-2-zbigniew.kempczynski@intel.com> In-Reply-To: <20230310194125.14781-1-zbigniew.kempczynski@intel.com> References: <20230310194125.14781-1-zbigniew.kempczynski@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v2 01/19] scripts/igt_doc.py: beautify its code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: From: Mauro Carvalho Chehab Change some comments and add blank lines before docstring, in order to better document its code. No functional changes. Signed-off-by: Mauro Carvalho Chehab Reviewed-by: Zbigniew KempczyƄski --- scripts/igt_doc.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) mode change 100755 => 100644 scripts/igt_doc.py diff --git a/scripts/igt_doc.py b/scripts/igt_doc.py old mode 100755 new mode 100644 index b7e3129d3f..c8bd4054f6 --- a/scripts/igt_doc.py +++ b/scripts/igt_doc.py @@ -109,7 +109,6 @@ class TestList: SUBTEST as those variables are locally processed on each comment line. """ - def __init__(self): self.doc = {} self.test_number = 0 @@ -238,7 +237,7 @@ class TestList: def print_test(self): - """Print tests and subtests ordered by tests""" + """Print tests and subtests""" for test in sorted(self.doc.keys()): fname = self.doc[test]["File"] @@ -368,7 +367,7 @@ class TestList: # File handling methods # - def add_file_documentation(self, fname, field_re): + def add_file_documentation(self, fname): """Adds the contents of test/subtest documentation form a file""" -- 2.34.1