diff --git a/qemu/scripts/qapi.py b/qemu/scripts/qapi.py index 62c5544c..5ac4ba6d 100644 --- a/qemu/scripts/qapi.py +++ b/qemu/scripts/qapi.py @@ -18,7 +18,10 @@ import os import re import string import sys -from ordereddict import OrderedDict +try: + from collections import OrderedDict +except: + from ordereddict import OrderedDict builtin_types = { 'str': 'QTYPE_QSTRING',