concrete.util.unnone module

concrete.util.unnone.dun(d)

If l is None return an empty dict, else return l. Simplifies iteration over dict fields that might be unset.

concrete.util.unnone.lun(l)

If l is None return an empty list, else return l. Simplifies iteration over list fields that might be unset.

concrete.util.unnone.sun(s)

If l is None return an empty set, else return l. Simplifies iteration over set fields that might be unset.