qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

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>

+12 -12
+1 -1
scripts/qapi/gen.py
··· 22 22 from qapi.schema import QAPISchemaVisitor 23 23 24 24 25 - class QAPIGen(object): 25 + class QAPIGen: 26 26 27 27 def __init__(self, fname): 28 28 self.fname = fname
+3 -3
scripts/qapi/parser.py
··· 23 23 from qapi.source import QAPISourceInfo 24 24 25 25 26 - class QAPISchemaParser(object): 26 + class QAPISchemaParser: 27 27 28 28 def __init__(self, fname, previously_included=None, incl_info=None): 29 29 previously_included = previously_included or set() ··· 293 293 raise QAPIParseError(self, "documentation comment must end with '##'") 294 294 295 295 296 - class QAPIDoc(object): 296 + class QAPIDoc: 297 297 """ 298 298 A documentation comment block, either definition or free-form 299 299 ··· 312 312 Free-form documentation blocks consist only of a body section. 313 313 """ 314 314 315 - class Section(object): 315 + class Section: 316 316 def __init__(self, name=None): 317 317 # optional section name (argument/member or section name) 318 318 self.name = name
+6 -6
scripts/qapi/schema.py
··· 24 24 from qapi.parser import QAPISchemaParser 25 25 26 26 27 - class QAPISchemaEntity(object): 27 + class QAPISchemaEntity: 28 28 meta = None 29 29 30 30 def __init__(self, name, info, doc, ifcond=None, features=None): ··· 89 89 return "%s '%s'" % (self.meta, self.name) 90 90 91 91 92 - class QAPISchemaVisitor(object): 92 + class QAPISchemaVisitor: 93 93 def visit_begin(self, schema): 94 94 pass 95 95 ··· 135 135 pass 136 136 137 137 138 - class QAPISchemaModule(object): 138 + class QAPISchemaModule: 139 139 def __init__(self, name): 140 140 self.name = name 141 141 self._entity_list = [] ··· 441 441 self.features) 442 442 443 443 444 - class QAPISchemaMember(object): 444 + class QAPISchemaMember: 445 445 """ Represents object members, enum members and features """ 446 446 role = 'member' 447 447 ··· 519 519 self.describe) 520 520 521 521 522 - class QAPISchemaObjectTypeVariants(object): 522 + class QAPISchemaObjectTypeVariants: 523 523 def __init__(self, tag_name, info, tag_member, variants): 524 524 # Flat unions pass tag_name but not tag_member. 525 525 # Simple unions and alternates pass tag_member but not tag_name. ··· 787 787 self.arg_type, self.boxed) 788 788 789 789 790 - class QAPISchema(object): 790 + class QAPISchema: 791 791 def __init__(self, fname): 792 792 self.fname = fname 793 793 parser = QAPISchemaParser(fname)
+2 -2
scripts/qapi/source.py
··· 13 13 import sys 14 14 15 15 16 - class QAPISchemaPragma(object): 16 + class QAPISchemaPragma: 17 17 def __init__(self): 18 18 # Are documentation comments required? 19 19 self.doc_required = False ··· 23 23 self.name_case_whitelist = [] 24 24 25 25 26 - class QAPISourceInfo(object): 26 + class QAPISourceInfo: 27 27 def __init__(self, fname, line, parent): 28 28 self.fname = fname 29 29 self.line = line