On 2015-08-04 15:13, Lukas Slebodnik wrote:
> ehlo,
> 
> attached patch fixes ticket #2699
> 
> On other places we do not require to return list by dict.keys().
> There were patterns:
>     something in a_dictionary.keys()
>     ", ".join(a_dictionary.keys()))

You don't have to call the keys() method at all. list(a_dict) gives you
a list of keys on all versions of Python. If you need a sorted list, you
can use sorted(a_dict). These days the keys() method is considered bad
style.

Christian


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
sssd-devel mailing list
sssd-devel@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/sssd-devel

Reply via email to