mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
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:
parent
abfa865014
commit
baa310f1bb
4 changed files with 12 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue