qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 21/26] qapi/parser.py: QAPIDoc: convert @staticmethod to @classme


From: John Snow
Subject: [PATCH 21/26] qapi/parser.py: QAPIDoc: convert @staticmethod to @classmethod
Date: Tue, 22 Sep 2020 18:35:20 -0400

For consistency: replace @staticmethod with @classmethod.

Signed-off-by: John Snow <jsnow@redhat.com>
---
 scripts/qapi/parser.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/qapi/parser.py b/scripts/qapi/parser.py
index a3403d4017..f5f40ffa16 100644
--- a/scripts/qapi/parser.py
+++ b/scripts/qapi/parser.py
@@ -465,8 +465,8 @@ def append(self, line):
     def end_comment(self):
         self._end_section()
 
-    @staticmethod
-    def _is_section_tag(name):
+    @classmethod
+    def _is_section_tag(cls, name):
         return name in ('Returns:', 'Since:',
                         # those are often singular or plural
                         'Note:', 'Notes:',
-- 
2.26.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]