mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
Prepare for changes in generated #define and global variables
These will be changing to annotation statements, so FixWxPrefix needs to be able to detect this still (proper thing to look for in this case is `ast.AnnAssign`).
This commit is contained in:
@@ -122,6 +122,9 @@ class FixWxPrefix(object):
|
||||
names.append(item.name)
|
||||
elif isinstance(item, ast.FunctionDef):
|
||||
names.append(item.name)
|
||||
elif isinstance(item, ast.AnnAssign):
|
||||
if isinstance(item.target, ast.Name):
|
||||
names.append(item.target.id)
|
||||
|
||||
names = list()
|
||||
filename = 'wx/core.pyi'
|
||||
|
||||
Reference in New Issue
Block a user