mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 19:40:12 +01:00
Some little tweaks and fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -649,6 +649,9 @@ from .%s import *
|
||||
for idx, pn in enumerate(pnames):
|
||||
# take only the part before the =, if there is one
|
||||
name = pn.split('=')[0].strip()
|
||||
# remove annotations
|
||||
name = re.sub('/[A-Za-z]*/', '', name)
|
||||
name = name.strip()
|
||||
# now get just the part after any space, * or &, which should be
|
||||
# the parameter name
|
||||
name = re.split(r'[ \*\&]+', name)[-1]
|
||||
@@ -690,6 +693,7 @@ from .%s import *
|
||||
# take only the part before the =, if there is one
|
||||
arg = arg.split('=')[0].strip()
|
||||
arg = arg.replace('&', '*') # SIP will always want to use pointers for parameters
|
||||
arg = re.sub('/[A-Za-z]*/', '', arg) # remove annotations
|
||||
fargs[idx] = arg
|
||||
fargs = ', '.join(fargs)
|
||||
if method.isCtor:
|
||||
|
||||
Reference in New Issue
Block a user