def unique2(gen):
    memo = set()
    for x,y in gen:
        if y not in memo:
            memo.add(y)
            yield x
Add character set properties to the global registry.
dataset/ETHPy150Open Microsoft/ivy/src/ivy/ivy_utils.py/unique2--crossover with--dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/future/backports/email/charset.py/add_charset