On 08/29/2013 08:18 AM, Vratislav Podzimek wrote: > + # take the first locale (with highest rank) for the language > + if locales[0] not in yielded_locales: > + yielded_locales.add(locales[0]) > yield locales[0] Doesn't this need to yield every item in locales?