mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-25 23:48:02 +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
1 changed files with 4 additions and 1 deletions
|
@ -18,6 +18,9 @@ import os
|
||||||
import re
|
import re
|
||||||
import string
|
import string
|
||||||
import sys
|
import sys
|
||||||
|
try:
|
||||||
|
from collections import OrderedDict
|
||||||
|
except:
|
||||||
from ordereddict import OrderedDict
|
from ordereddict import OrderedDict
|
||||||
|
|
||||||
builtin_types = {
|
builtin_types = {
|
||||||
|
|
Loading…
Reference in a new issue