summaryrefslogtreecommitdiff
path: root/giscanner/ast.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-11-24 02:24:17 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2018-03-10 19:05:19 +0530
commit3a7d3eee01dd5213547290c2b01db0810d4f50cc (patch)
treeb59d4bfcfe611ccea21bac93692859a8b7f36a06 /giscanner/ast.py
parentaae69e73eb3ce04f643e9697e46823e41cdb4eea (diff)
downloadgobject-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/ast.py')
-rw-r--r--giscanner/ast.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py
index 7a2b5b15..2dff8bd0 100644
--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -27,10 +27,10 @@ from __future__ import unicode_literals
import copy
import operator
from itertools import chain
+from collections import OrderedDict
from . import message
-from .collections import OrderedDict
from .message import Position
from .utils import to_underscores