mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-09 05:20:08 +01:00
Fix TopicTreeTraverser when doing breadth traversal on Python 3
Python 3 orders maps differently from Python 2, so sort the subtopics before traversing them like is done with depth traversal.
This commit is contained in:
@@ -55,6 +55,8 @@ class TopicTreeTraverser:
|
||||
|
||||
def extendQueue(subtopics):
|
||||
topics.append(visitor._startChildren)
|
||||
# put subtopics in list in alphabetical order
|
||||
subtopics.sort(key=topicObj.__class__.getName)
|
||||
topics.extend(subtopics)
|
||||
topics.append(visitor._endChildren)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user