diff mbox series

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

Message ID 20200922223525.4085762-22-jsnow@redhat.com
State New
Headers show
Series qapi: static typing conversion, pt5 | expand

Commit Message

John Snow Sept. 22, 2020, 10:35 p.m. UTC
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 mbox series

Patch

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:',