summaryrefslogtreecommitdiff
path: root/giscanner/girwriter.py
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2013-09-07 00:16:17 +0200
committerColin Walters <walters@verbum.org>2013-10-09 12:48:45 -0400
commitd0c2f49a87a9b8db6aaed367544fabd612b0dc0b (patch)
tree849490904a72addc8754faef3a280f70de5dadee /giscanner/girwriter.py
parent717be6d97095d5f0641d8d1ef74947dc75b3f204 (diff)
downloadgobject-introspection-d0c2f49a87a9b8db6aaed367544fabd612b0dc0b.tar.gz
giscanner: remove unneeded isinstance check
_write_class() is only ever called with ast.Class and ast.Interface nodes so the check served no purpose other than contribute to global warming...
Diffstat (limited to 'giscanner/girwriter.py')
-rw-r--r--giscanner/girwriter.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py
index 2f3d59cc..78ad7e43 100644
--- a/giscanner/girwriter.py
+++ b/giscanner/girwriter.py
@@ -436,9 +436,8 @@ class GIRWriter(XMLWriter):
if isinstance(node, ast.Class):
for method in sorted(node.constructors):
self._write_constructor(method)
- if isinstance(node, (ast.Class, ast.Interface)):
- for method in sorted(node.static_methods):
- self._write_static_method(method)
+ for method in sorted(node.static_methods):
+ self._write_static_method(method)
for vfunc in sorted(node.virtual_methods):
self._write_vfunc(vfunc)
for method in sorted(node.methods):