[PATCH 3/3] Handle automated installs

Jesse Keating jkeating at redhat.com
Wed Sep 19 18:44:18 UTC 2012


On 09/19/2012 01:12 AM, Vratislav Podzimek wrote:
>> +            return None
> The for could probably be replaced with:
>
> if all(spoke.completed for spoke in self._keys.itervalues()):
>       self.close()
>       return None
> else:
>       return TUIHub.prompt(self, args)
>
> which is as efficient as the original code and, e.g. for me, better
> readable.
>


Huh, I've never come across all() before.  Nice.

-- 
Jesse Keating
Fedora -- FreedomĀ² is a feature!


More information about the anaconda-patches mailing list