From ed39c03e2f67e9dcc0b68a9740f73b79d252b76b Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Wed, 4 Mar 2020 16:59:30 +0100 Subject: qapi: Drop conditionals for Python 2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Markus Armbruster Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20200304155932.20452-3-armbru@redhat.com> Reviewed-by: John Snow --- tests/qapi-schema/test-qapi.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'tests/qapi-schema') 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): -- cgit v1.1