diff options
author | Dieter Verfaillie <dieterv@optionexplicit.be> | 2013-04-25 17:08:56 +0200 |
---|---|---|
committer | Dieter Verfaillie <dieterv@optionexplicit.be> | 2013-05-07 15:36:09 +0200 |
commit | 0dbd46680a7fac7ac74c2945e23b95dd04ff79dc (patch) | |
tree | cd608980a95960b804df5ff69fcce1d56c8fd823 /gir | |
parent | 44ff0d355021f527a518d320f403aa0717fd0bc8 (diff) | |
download | gobject-introspection-0dbd46680a7fac7ac74c2945e23b95dd04ff79dc.tar.gz |
giscanner: simplify the MainTransformer().transform() method
The ast.Namespace.names instance attribute is an OrderedDict
which itself is a specialised dict() subclass. There are any
number of ways to test if a dict() is empty or not. Creating
a copy of it's keys by iterating over them just to count the
number of items in the copy is not the most elegant way though.
https://bugzilla.gnome.org/show_bug.cgi?id=699533
Diffstat (limited to 'gir')
0 files changed, 0 insertions, 0 deletions