def decoder(conv_func):
    return lambda s: conv_func(s.decode('utf-8'))
The Python sqlite3 interface returns always byte strings.
dataset/ETHPy150Open django/django/django/db/backends/sqlite3/base.py/decoder