Browse Source

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>
pull/66/head
Daniel P. Berrange 9 years ago
committed by Eduardo Habkost
parent
commit
38710a8994
  1. 3
      scripts/qapi.py

3
scripts/qapi.py

@ -18,6 +18,9 @@ import os
import re
import string
import sys
try:
from collections import OrderedDict
except:
from ordereddict import OrderedDict
builtin_types = {

Loading…
Cancel
Save