def eval_b(x):
    if sys.version_info.major == 2:
        return x
    else:
        import codecs
        return codecs.utf_8_encode(x)[0]
Evaluate if to encode the value is necessary.
dataset/ETHPy150Open rochacbruno/quokka/quokka/modules/accounts/tests/test_model.py/eval_b