def removeAutoSearchFlags(self, flags): UnitBase.removeAutoSearchFlags(self, flags) self.onUnitSearchFlagsChanged(self.getAutoSearchFlags())