From c78302ce7b33e7353bf0bc9272c86956841cb49a Mon Sep 17 00:00:00 2001 From: Dieter Verfaillie Date: Wed, 21 Nov 2012 17:42:41 +0100 Subject: giscanner: implement DocOption() in terms of odict instead of dict The order of the "options" key/value pairs returned by DocOption().all() should be identical to the order in which they where stored. Hence replace the dict usage with odict. https://bugzilla.gnome.org/show_bug.cgi?id=688897 --- giscanner/annotationparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'giscanner/annotationparser.py') diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py index 364fdbfc..c405ef43 100644 --- a/giscanner/annotationparser.py +++ b/giscanner/annotationparser.py @@ -437,7 +437,7 @@ class DocOption(object): def __init__(self, tag, option): self.tag = tag self._array = [] - self._dict = {} + self._dict = odict() # (annotation option1=value1 option2=value2) etc for p in option.split(' '): if '=' in p: -- cgit v1.2.1