diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-01-31 18:23:07 -0500 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-02-01 19:47:41 -0500 |
commit | 9ca1a568c38e6cae4aa1ab55fe09a63a3892ad18 (patch) | |
tree | 1e502ae10fbad6c7a9882aea857cc987b12f0f83 | |
parent | ac3d35bd4fcf07f86b4ea5a0d71569cc7a49e1c8 (diff) | |
download | gobject-introspection-9ca1a568c38e6cae4aa1ab55fe09a63a3892ad18.tar.gz |
mallardwriter: Don't use function symbols for vfuncs/signals
-rw-r--r-- | giscanner/mallardwriter.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/giscanner/mallardwriter.py b/giscanner/mallardwriter.py index f40bf881..844c3198 100644 --- a/giscanner/mallardwriter.py +++ b/giscanner/mallardwriter.py @@ -368,7 +368,10 @@ class MallardFormatterC(MallardFormatter): return type_.target_fundamental def format_function_name(self, func): - return func.symbol + if isinstance(func, (ast.Function)): + return func.symbol + else: + return func.name class MallardFormatterPython(MallardFormatter): language = "Python" |