aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2018-06-08 14:52:52 -0300
committerEduardo Habkost <ehabkost@redhat.com>2018-06-08 16:40:54 -0300
commitc7883412440905b41dde7e70f4af782932e80e90 (patch)
treec1e348a65d88dea7e578cb25188130a35e2374b5 /scripts/qapi
parent7f5ed8c997d16e1ee24b25a9b0af80e71fb79770 (diff)
python: Remove scripts/ordereddict.py
Python 2.7 (the minimum Python version we require) provides collections.OrderedDict on the standard library, so we don't need to carry our own implementation. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20180608175252.25110-3-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'scripts/qapi')
-rw-r--r--scripts/qapi/common.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/qapi/common.py b/scripts/qapi/common.py
index e82990f0f2..2462fc0291 100644
--- a/scripts/qapi/common.py
+++ b/scripts/qapi/common.py
@@ -16,10 +16,7 @@ import errno
import os
import re
import string
-try:
- from collections import OrderedDict
-except:
- from ordereddict import OrderedDict
+from collections import OrderedDict
builtin_types = {
'null': 'QTYPE_QNULL',