

def register_mappers():
    textmapper = datamapper.DataMapper()
    jsonmapper = JsonMapper()
    xmlmapper = XmlMapper(numbermode='basic')
    datamapper.manager.register_mapper(jsonmapper, 'application/x-javascript', 'json')
    datamapper.manager.register_mapper(jsonmapper, 'text/javascript', 'json')
    datamapper.manager.register_mapper(jsonmapper, 'text/x-javascript', 'json')
    datamapper.manager.register_mapper(jsonmapper, 'text/x-json', 'json')
    datamapper.manager.register_mapper(textmapper, 'text/plain', 'text')
    datamapper.manager.register_mapper(xmlmapper, 'text/xml', 'xml')
    datamapper.manager.register_mapper(jsonmapper, 'application/json', 'json')

dataset/ETHPy150Open wuher/devil/devil/__init__.py register_mappers/original