qapi: Use OrderedDict from standard library if available

The OrderedDict class appeared in the 'collections' module
from python 2.7 onwards, so use that in preference to our
local backport if available.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <20180116134217.8725-4-berrange@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
Daniel P. Berrange 2018-01-16 13:42:06 +00:00 committed by Eduardo Habkost
parent 2f84804470
commit 38710a8994

View File

@ -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 = {
'null': 'QTYPE_QNULL',