These are a bit unrelated. We don't actually do any logical change here, it is just that used_aliases isn't set to locals. The last "if self.filter_is_sticky" condition wasn't actually doing anything (used_aliases is self.used_aliases in any case).