From 30c809c9f6dbd368fef9ccc977fc6d6d8102310d Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 19 Dec 2011 21:06:43 +0000 Subject: [PATCH] only do the ignore trick if we are ignoring, not unignoring. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- etgtools/extractors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etgtools/extractors.py b/etgtools/extractors.py index 0959a957..dbd6d449 100644 --- a/etgtools/extractors.py +++ b/etgtools/extractors.py @@ -317,7 +317,7 @@ class FunctionDef(BaseDef): # If the item being ignored has overloads then try to reorder the # items so the primary item is not an ignored one. super(FunctionDef, self).ignore(val) - if self.overloads: + if val and self.overloads: all = [self] + self.overloads all.sort(key=lambda item: item.ignored) first = all[0]