mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
Revert auto-propagating the mustHaveAppFlag from classes to their static methods, if any, and explicitly set the flag on only those static methods that need it instead.
This commit is contained in:
@@ -428,11 +428,10 @@ from .%s import *
|
||||
if klass.ignored:
|
||||
return
|
||||
|
||||
# Propagate mustHaveApp setting to the ctors and static methods
|
||||
# Propagate mustHaveApp setting to the ctors
|
||||
if klass.mustHaveAppFlag:
|
||||
for item in klass.allItems():
|
||||
if isinstance(item, extractors.MethodDef) and \
|
||||
(item.isCtor or item.isStatic):
|
||||
if isinstance(item, extractors.MethodDef) and item.isCtor:
|
||||
item.mustHaveApp(True)
|
||||
|
||||
# write the class header
|
||||
|
||||
Reference in New Issue
Block a user