Don't remove leading wx when postprocessing

This commit is contained in:
Robin Dunn
2016-06-04 16:08:29 -07:00
parent 2355ceb198
commit 874bdd2626
2 changed files with 2 additions and 6 deletions

View File

@@ -2730,8 +2730,7 @@ class XMLDocString(object):
docstrings = v.briefDoc
name = v.pyName if v.pyName else removeWxPrefix(v.name)
name = ItemModuleMap().get_fullname(name)
name = convertToPython(name) # ***
name = convertToPython(name)
stream.write('%-80s' % name)
if not isinstance(docstrings, string_base):

View File

@@ -142,12 +142,9 @@ def buildEnumsAndMethods(sphinxDir):
text = findInherited(input, class_summary, enum_base, text)
text, unreferenced_classes = removeUnreferenced(input, class_summary, enum_base, unreferenced_classes, text)
text = text.replace('wx``', '``')
text = text.replace('wx.``', '``')
text = text.replace('non-NULL', 'not ``None``')
text = text.replace(',,', ',').replace(', ,', ',')
text = text.replace('|wx', '|')
# Replacements for ScrolledWindow and ScrolledCanvas...
text = text.replace('<wxWindow>', 'Window')
text = text.replace('<wxPanel>', 'Panel')