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/annotationparser.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/annotationparser.py')
-rw-r--r-- | giscanner/annotationparser.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py index 31a62927..1092310e 100644 --- a/giscanner/annotationparser.py +++ b/giscanner/annotationparser.py @@ -116,10 +116,9 @@ import os import re import operator -from collections import namedtuple from operator import ne, gt, lt +from collections import namedtuple, Counter, OrderedDict -from .collections import Counter, OrderedDict from .message import Position, warn, error |