mirror of
https://github.com/mii443/qemu.git
synced 2025-08-31 03:19:27 +00:00
qapi: Drop conditionals for Python 2
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20200304155932.20452-3-armbru@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com>
This commit is contained in:
@ -16,15 +16,11 @@ import argparse
|
||||
import difflib
|
||||
import os
|
||||
import sys
|
||||
from io import StringIO
|
||||
|
||||
from qapi.error import QAPIError
|
||||
from qapi.schema import QAPISchema, QAPISchemaVisitor
|
||||
|
||||
if sys.version_info[0] < 3:
|
||||
from cStringIO import StringIO
|
||||
else:
|
||||
from io import StringIO
|
||||
|
||||
|
||||
class QAPISchemaTestVisitor(QAPISchemaVisitor):
|
||||
|
||||
|
Reference in New Issue
Block a user