def sphinxify(oinfo):
    wrapped_docstring = sphx.wrap_main_docstring(oinfo)

    def sphinxify_docstring(docstring):
        with TemporaryDirectory() as dirname:
            return {'text/html': sphx.sphinxify(wrapped_docstring, dirname), 'text/plain': docstring}
    return sphinxify_docstring
def sphinxify(oinfo):
    wrapped_docstring = sphx.wrap_main_docstring(oinfo)

    def sphinxify_docstring(docstring):
        with TemporaryDirectory() as dirname:
            return {'text/html': sphx.sphinxify(wrapped_docstring, dirname), 'text/plain': docstring}
    return sphinxify_docstring