summaryrefslogtreecommitdiff
path: root/scripts/ordereddict.py
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2015-09-29 16:21:02 -0600
committerMarkus Armbruster <armbru@redhat.com>2015-10-12 18:44:54 +0200
commit437db2549be383e52acad6cd4bf2862e98fdfc93 (patch)
tree3d137ab2bd191b8aa7932b1f7bd033abb20110bf /scripts/ordereddict.py
parent59b00542659c8947f9d4e8c28d2d528ab3ab61a5 (diff)
downloadqemu-437db2549be383e52acad6cd4bf2862e98fdfc93.tar.gz
qapi: Clean up qapi.py per pep8
Silence pep8, and make pylint a bit happier. Just style cleanups, plus killing a useless comment in camel_to_upper(); no semantic changes. Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <1443565276-4535-5-git-send-email-eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'scripts/ordereddict.py')
-rw-r--r--scripts/ordereddict.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/ordereddict.py b/scripts/ordereddict.py
index 7242b5060d..2d1d81370b 100644
--- a/scripts/ordereddict.py
+++ b/scripts/ordereddict.py
@@ -22,6 +22,7 @@
from UserDict import DictMixin
+
class OrderedDict(dict, DictMixin):
def __init__(self, *args, **kwds):
@@ -117,7 +118,7 @@ class OrderedDict(dict, DictMixin):
if isinstance(other, OrderedDict):
if len(self) != len(other):
return False
- for p, q in zip(self.items(), other.items()):
+ for p, q in zip(self.items(), other.items()):
if p != q:
return False
return True