qapi: Inheriting from object is pointless with Python 3, drop

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200304155932.20452-2-armbru@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
This commit is contained in:
Markus Armbruster 2020-03-04 16:59:29 +01:00
parent abfa865014
commit baa310f1bb
4 changed files with 12 additions and 12 deletions

View file

@ -23,7 +23,7 @@ from qapi.error import QAPIParseError, QAPISemError
from qapi.source import QAPISourceInfo
class QAPISchemaParser(object):
class QAPISchemaParser:
def __init__(self, fname, previously_included=None, incl_info=None):
previously_included = previously_included or set()
@ -293,7 +293,7 @@ class QAPISchemaParser(object):
raise QAPIParseError(self, "documentation comment must end with '##'")
class QAPIDoc(object):
class QAPIDoc:
"""
A documentation comment block, either definition or free-form
@ -312,7 +312,7 @@ class QAPIDoc(object):
Free-form documentation blocks consist only of a body section.
"""
class Section(object):
class Section:
def __init__(self, name=None):
# optional section name (argument/member or section name)
self.name = name