mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
Don't write a function stub if there is no pyName (such as for operator functions)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -249,6 +249,8 @@ class PiWrapperGenerator(generators.WrapperGeneratorBase):
|
||||
#-----------------------------------------------------------------------
|
||||
def generateFunction(self, function, stream):
|
||||
assert isinstance(function, extractors.FunctionDef)
|
||||
if not function.pyName:
|
||||
return
|
||||
stream.write('\ndef %s' % function.pyName)
|
||||
if function.overloads:
|
||||
stream.write('(*args, **kw)')
|
||||
|
||||
Reference in New Issue
Block a user