mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-25 21:57:00 +00:00
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. Backports commit 38710a8994911d98acbe183a39ec3a53638de510 from qemu
This commit is contained in:
parent
a162292aae
commit
06f8bcbc97
|
@ -18,7 +18,10 @@ import os
|
||||||
import re
|
import re
|
||||||
import string
|
import string
|
||||||
import sys
|
import sys
|
||||||
from ordereddict import OrderedDict
|
try:
|
||||||
|
from collections import OrderedDict
|
||||||
|
except:
|
||||||
|
from ordereddict import OrderedDict
|
||||||
|
|
||||||
builtin_types = {
|
builtin_types = {
|
||||||
'str': 'QTYPE_QSTRING',
|
'str': 'QTYPE_QSTRING',
|
||||||
|
|
Loading…
Reference in a new issue