diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-11-24 02:24:17 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-03-10 19:05:19 +0530 |
commit | 3a7d3eee01dd5213547290c2b01db0810d4f50cc (patch) | |
tree | b59d4bfcfe611ccea21bac93692859a8b7f36a06 /giscanner/girparser.py | |
parent | aae69e73eb3ce04f643e9697e46823e41cdb4eea (diff) | |
download | gobject-introspection-3a7d3eee01dd5213547290c2b01db0810d4f50cc.tar.gz |
giscanner: Remove custom collections implementation
We already require python 2.7, and it has OrderedDict and Counter.
Besides cleaning up unmaintained code, this change found and fixed
a Python 3 bug where we were iterating over a dict while changing it.
Diffstat (limited to 'giscanner/girparser.py')
-rw-r--r-- | giscanner/girparser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/girparser.py b/giscanner/girparser.py index 909e08d9..6841b6c5 100644 --- a/giscanner/girparser.py +++ b/giscanner/girparser.py @@ -25,11 +25,11 @@ from __future__ import unicode_literals import os +from collections import OrderedDict from xml.etree.cElementTree import parse from . import ast from .girwriter import COMPATIBLE_GIR_VERSION -from .collections import OrderedDict CORE_NS = "http://www.gtk.org/introspection/core/1.0" C_NS = "http://www.gtk.org/introspection/c/1.0" |