diff options
author | Markus Armbruster <armbru@redhat.com> | 2020-03-04 16:59:30 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2020-03-05 09:24:11 +0100 |
commit | ed39c03e2f67e9dcc0b68a9740f73b79d252b76b (patch) | |
tree | 138a6efec597e5a396ed70d6f16f0403a7470dee /tests | |
parent | baa310f1bbdfedfd3e0f3f1f162bb97748ca0a94 (diff) | |
download | qemu-ed39c03e2f67e9dcc0b68a9740f73b79d252b76b.zip qemu-ed39c03e2f67e9dcc0b68a9740f73b79d252b76b.tar.gz qemu-ed39c03e2f67e9dcc0b68a9740f73b79d252b76b.tar.bz2 |
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>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/qapi-schema/test-qapi.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/qapi-schema/test-qapi.py b/tests/qapi-schema/test-qapi.py index 41232c1..bee18ee 100755 --- a/tests/qapi-schema/test-qapi.py +++ b/tests/qapi-schema/test-qapi.py @@ -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): |